Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
ADIR() with too many files. Workaround for VFP8.
Message
From
25/07/2007 20:45:50
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Troubleshooting
Miscellaneous
Thread ID:
01243606
Message ID:
01243654
Views:
30
>You are right. Just thought somebody out there might like to know because it can still serve a useful purpose. In my particular situation, it's fast and useful because I'm only interested in file deletion. I'm scanning folders with thousands of files in them and offering to delete all files older than X days, plus give an idea of approximately how many files are older than those X days. So I need the file dates as well as the file names. For me Adir() is handy for that. If adir()is exceeded, the routine just does a deletion run and doesn't worry about it because invariably most of the files are old enough to get zapped anyway. Next time around, it'll get the rest.

Good thinking - but if you're getting close to 13000 files in a single directory, there's something larger that's wrong there, namely the thing which leaves all those files there. If it's so by design, then, well, you may just run this a bit more often.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Reply
Map
View

Click here to load this message in the networking platform