Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python temporary directory

import tempfile

with tempfile.TemporaryDirectory() as tmpdirname:
   print('Created temporary directory:', tmpdirname)

# Both the directory and its contents have been deleted
Source by codefreelance.net #
 
PREVIOUS NEXT
Tagged: #python #temporary #directory
ADD COMMENT
Topic
Name
8+2 =