wummel / patool

patool is a portable command line archive file manager
http://wummel.github.io/patool/
GNU General Public License v3.0
404 stars 68 forks source link

file "x" was not found #123

Closed timthurner closed 1 year ago

timthurner commented 1 year ago

import patoolib

patoolib.create_archive("file.7z", "/tmp/b98db6e2-a462-4fd7-afeb-9a153c28e0b9", verbosity=1)

Traceback (most recent call last): File "", line 1, in File "/usr/local/lib/python3.10/dist-packages/patoolib/init.py", line 794, in create_archive util.check_archive_filelist(filenames) File "/usr/local/lib/python3.10/dist-packages/patoolib/util.py", line 426, in check_archive_filelist check_existing_filename(filename, onlyfiles=False) File "/usr/local/lib/python3.10/dist-packages/patoolib/util.py", line 402, in check_existing_filename raise PatoolError("file %s' was not found" % filename) patoolib.util.PatoolError: filet' was not found

am i doing something wrong here is there any pre-requisite on how to supply directory path for creating an archive ?

timthurner commented 1 year ago

apologies closing the issue sorted by enclosing the path in a list instead