in reply to Issue with Archive::Tar
should be$tar->write('Test2.tbz', COMPRESS_BZIP); $tar->add_files(@files);
Referring to Archive::Tar, we see that add_files() only adds files to the in-memory object i.e. not to any file that may have been written using write() ... unless, of course, it's nealry beer o'clock on Friday afternoon and I've missed something even more elementary :-)$tar->add_files(@files); $tar->write('Test2.tbz', COMPRESS_BZIP);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Issue with Archive::Tar
by dracos (Sexton) on Mar 21, 2014 at 15:40 UTC | |
by Bloodnok (Vicar) on Mar 21, 2014 at 17:42 UTC |