1. sodas tsai
  2. ground-soil

Commits

sodas tsai  committed 6a18906

Change prefix string of tmp_dir name

  • Participants
  • Parent commits 3226809
  • Branches master

Comments (0)

Files changed (1)

File ground_soil/filesystem.py

View file
     if not os.path.exists(os_temp_dir):
         os.mkdir(os_temp_dir)
     # Make temporary folder in room
-    path = tempfile.mkdtemp(prefix=(prefix or 'tmp'), dir=os_temp_dir, suffix=(suffix or ''))
+    path = tempfile.mkdtemp(prefix=(prefix or 'tmp')+'~', dir=os_temp_dir, suffix=('~'+suffix or ''))
 
     try:
         yield path