Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python temp directory

Use the mkdtemp() function from the tempfile module:

import tempfile
import shutil

dirpath = tempfile.mkdtemp()
# ... do stuff with dirpath
shutil.rmtree(dirpath)
Source by codefreelance.net #
 
PREVIOUS NEXT
Tagged: #python #temp #directory
ADD COMMENT
Topic
Name
7+1 =