Twice in the past month I've had great frustration because of tools that would create a file given a non-existent filename, but would not create the directory structure necessary to hold the file, if it didn't exist.
First off, the Ogg Vorbis encoder provided by RareWares is capable of auto-creating directories if they're specified in the output path. However, the Lame encoder, also provided by RareWares, does not. The directory needs to be created manually first if it doesn't exist, before a file can be written there.
I had the same issue with Perl's open() procedure. It will create a file that doesn't exist, but the directory has to be there already.
I know it's good practice to check for these things, but it's still annoying, chasing down an error like that.
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment