Mail Archives: djgpp/1999/03/30/10:21:24
On Tue, 30 Mar 1999, Jeff Williams wrote:
> -: It might be a good idea not to leave an empty file behind, though.
>
> Would it be sufficient to check the size of `tarchange.lst' before
> exiting djtar and delete it if empty? Perhaps I could actually
> submit a patch for this.
Please do, but be sure to check that non-empty files aren't deleted.
It's not trivial to find out the true size of the file which was just
been written to, so caveat emptor.
Perhaps a better idea is to check whether there's *any* information about
changed names inside the data structure maintained by DJTAR, and only
open the file if there's actually something to write.
- Raw text -