Skip to content

Commit

Permalink
Add prefix arg to tmpdir
Browse files Browse the repository at this point in the history
  • Loading branch information
wummel committed Nov 13, 2023
1 parent bb66ca9 commit 8b3cd17
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions patoolib/fileutil.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def get_filesize(filename):
return os.path.getsize(filename)


def tmpdir(dir=None):
def tmpdir(dir=None, prefix="Unpack_"):
"""Return a temporary directory for extraction."""
return tempfile.mkdtemp(suffix='', prefix='Unpack_', dir=dir)
return tempfile.mkdtemp(suffix="", prefix=prefix, dir=dir)


def tmpfile(dir=None, prefix="temp", suffix=None):
Expand Down

0 comments on commit 8b3cd17

Please sign in to comment.