in reply to Re^2: Validate windows filenames.
in thread Validate windows filenames.

If you try to copy the file in stead of moving / renaming? Check if success, then delete the original.

"We all agree on the necessity of compromise. We just can't agree on when it's necessary to compromise." - Larry Wall.

Replies are listed 'Best First'.
Re^4: Validate windows filenames.
by zzspectrez (Hermit) on Jul 14, 2005 at 16:02 UTC

    Once I discovered the error, I changed the code to both validate the filename and do a copy / delete. However having to jump through a copy / delete 2 - process step kind of defeats the purpose of having a move function....

    Thanks for the reply.. However, Im not looking for a solution to deal with the moving of the file. I only mentioned that as background to why validating windows filename is important.

    My Questions are: (1) Do fellow perlmonks routinely validate filenames? If so, how do you do it? (2) Any inherit problems with how my routines deal with validating/sanitizing windows filenames??

    zzSPECTREz