Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Update: Finding hidden and system files with File::Find (win32)

by Coyote (Deacon)
on Sep 25, 2001 at 02:06 UTC ( #114433=note: print w/ replies, xml ) Need Help??


in reply to Finding hidden and system files with File::Find (win32)

Update: Not suprisingly, tye is correct about the behavior of readdir, glob, and File::Find. Running a script similar to my nimda repair script on a Win2k pro box shows files flagged with the system and hidden attributes.

Running the same script on a Novell Netware server doesn't show hidden and/or system flagged files consistantly. The problem seems to be Netware related rather than perl related. Using the Novell flag command to remove the hidden and system attributes on the effected files before running the script, took care of the problem. I will try to reproduce the problem with files that are less dangerous and update this node with my solution.

Thanks to everyone who responded.

----
Coyote


Comment on Update: Finding hidden and system files with File::Find (win32)
Re: Update: Finding hidden and system files with File::Find (win32)
by softworkz (Monk) on Sep 25, 2001 at 16:51 UTC
    can someone point me in the right direction on how to use the Win32::API I'm in the same boat as Coyote, but the script I wrote using File::Find doesn't work quite right for some folders where I dont have "rights". So for now I'd like the script to just skip those folders, any advice?

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://114433]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (7)
As of 2014-08-30 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls