On 2002.02.07, at 09:09, Mark Edwards wrote:
> Just checking in with you. Does psync indeed ignore files such as:
>
> .FBCIndex
> .FBCLockFolder
>
> Should I expect it to copy everything except:
>
> .FBCIndex
> .FBCLockFolder
> ._*
For the time being, yes. You can customize which files to ignore via
variables below;
my $IgnorePat =
qr[
^/(?:
tmp/.*
| dev/.*
| private/var/tmp/.*
| private/var/vm/.*
| private/var/run/.*
| Temporary¥ Items/.*
)
]xo;
my $Psync_DB = '.psync.db';
my %IgnoreFiles = map { $_ => 1 }
(
$Psync_DB,
'.DS_Store',
'.FBCIndex',
'.FBCLockFolder',
'.Trashes',
'AppleShare PDS',
'Desktop DB',
'Desktop DF',
'TheFindByContentFolder',
'TheVolumeSettingsFolder',
);
The difference between IgnorePat and IgnoreFiles is that IgnorePat is
tested agains full path while IgnoreFiles is tested against basename
thereof.
You can also use pcpmac. Or you can even write programs with
MacOSX::File to your likings...
Dan the Man with Too Many Files To Copy.