On Wed Oct 22 2008 @  4:32, protoplasm wrote:
> I ran find2perl to give me some output that I included below (in
> Sub_directory). If I have no network shares mounted it runs fine. But
> I have some shares mounted (sftp, or smb, etc.) via Nautilus, the
> below script really takes a long time. It begins to search through
> ~/.gvfs which is where Nautilus mounts user shares. How can I find a
> particular directory while ignoring hidden folders like .gvfs?

I don't have experience with shared filesystems, so John's answer may be
far better. That said, when I want to ignore .svn subfolders, I do this at
the start of the subrouting that I hand to File::Find:

return $File::Find::prune = 1 if $_ eq '.svn';

HTH, T

Attachment: pgpfaDXPh8cB4.pgp
Description: PGP signature

Reply via email to