Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'preflight checks on filenames?' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
preflight checks on filenames?
Authored by: diamondsw on Aug 04, '05 05:55:00PM

Not only will remote systems have differing filename conventions (lengths, allowable characters, etc), but then you'd have to check every single file before copying to see if it will work. Keeping track of space needed is simple, just have a long long of the total bytes needed. Checking the file names would either require creating a buffer of all of the names (fast, but memory-intensive), or checking each one as the algorithm goes (slow, but easier on memory). Either way, it will hurt performance *significantly*.

Why yes, I *do* have a BA in Computer Science.



[ Reply to This | # ]