I have had this happen to me once: Encoding of a .wav file was interrupted somehow, so an incomplete .flac flie was generated. I accidentally ran a decode on that .flac file, which wiped out the original .wav file. I suggest that flac adopt one of the following to handle the situation that an output file is specified with -o or implied, and the output file already exists: 1. rename the existing output file by appending _001 or something like that. 2. add a flag like --warn-overwirte-output-file , which will prompt the user for the overwrite. I can easily add the flag to my batch file. -- Chuck
--- "Chuck H. Zhao" <chuck.h.zhao@sadbhuja.com> wrote:> I have had this happen to me once: Encoding of a .wav file was > interrupted > somehow, so an incomplete .flac flie was generated. I accidentally > ran a > decode on that .flac file, which wiped out the original .wav file.are you using the command-line encoder? encoding and decoding never delete a file unless you specifically say --delete-input-file, and even then, they only delete after the encode/decode completes successfully. Josh __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
--- "Chuck H. Zhao" <chuck.h.zhao@sadbhuja.com> wrote:> > >are you using the command-line encoder? encoding and decoding never > >delete a file unless you specifically say --delete-input-file, and > >even then, they only delete after the encode/decode completes > >successfully. > > Yes I used the command-line encoder. I am talking about deletion of > the > output file, not the input file. When I accidentally decoded the > incomplete .flac file, the original .wav file was wiped out and lost.hmm, gzip and bzip2 warn in that case... I'll put this on the TODO list. Josh __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com
>are you using the command-line encoder? encoding and decoding never >delete a file unless you specifically say --delete-input-file, and >even then, they only delete after the encode/decode completes >successfully.Yes I used the command-line encoder. I am talking about deletion of the output file, not the input file. When I accidentally decoded the incomplete .flac file, the original .wav file was wiped out and lost. -- Chuck