develooper Front page | perl.beginners | Postings from January 2002

File::Find on Win32 -- Directory Permissions Denied

Thread Next
January 30, 2002 13:15
File::Find on Win32 -- Directory Permissions Denied
Message ID:
I am trying to use File::Find module on Win NT 4.0 with Activestate Perl to
find the directory sizes on a network share drive. If the individual
directories are protected by Windows NTFS permissions, the File::Find module
throws a warning message on STDOUT saying "Can't opendir(Z:/blahblah):
Invalid Argument". I have two questions here.

a) I am using formats and would like to output this information to a format
handle rather than the default STDOUT. IS there a way to do it via

b) How would I detect those directories which cannot be opened in a Win32
OS? (-r, -R etc did not work for me).

Am I missing an obvious thing, here?


Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About