I have a problem~ette with File::Find.
OS: MS Windows Server 2003 Enterprose x64 bit
Perl: v5.5.8 MSWin32-x64-multi-thread
File System: NTFS (952gb)
Q. I'm using File::Find quite happily until... my script (which works perfectly on other servers) stops prematurely for no apparent reason part way through the drive being examined. I picked this up because Windows Properties for e:\ told me there was 208GB used file space & I was only picking up some 30GB.
NB For files > 2GB I get the info using dos “DIR”, apologies for that?
Some of the file names encountered on the drive frankly bizarre!
I tried:-
(1) Running the script against the largest folder in the drive and again I was only seeing 178,610 files instead of the 252,115 files that IE told me were present.
(2) A small scripts that just counts the number of files in the projects folder found 204,257.
Both scripts are consistent in the number of files they find.
I get several warnings that "Can't cd to e:..." The filename displayed is always 293 characters in length.
Hopefully this is one for Sybil Fawlty who’s specialist subject is, “the bleeding obvious” but I just can’t see it. My Perl Cookbook makes no mention of large filenames/handles.
I have spent some time looking for a solution with no luck.
Any advice would be gratefully received.
Thanks,
Simon<BR
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.