af4878738bf9139d0a3385e315019524e2db8753,sounds/management.py,,create_locations,#Any#,29
Before Change
settings.DISPLAYS_PATH,
settings.FILE_UPLOAD_TEMP_DIR]:
if not os.path.isdir(folder):
try:
os.mkdir(folder)
print ("Successfullly created the folder: "%s"" % folder)
except Exception as e:
print ("Problem creating this folder: "%s", %s"
% (folder, e))
else:
print ("Folder: "%s" already exists" % folder)
After Change
settings.DISPLAYS_PATH,
settings.FILE_UPLOAD_TEMP_DIR]:
if not os.path.isdir(folder):
create_directories(folder, exist_ok=True)
else:
print ("Folder: "%s" already exists" % folder)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: MTG/freesound
Commit Name: af4878738bf9139d0a3385e315019524e2db8753
Time: 2020-05-25
Author: alastair.porter@upf.edu
File Name: sounds/management.py
Class Name:
Method Name: create_locations
Project Name: MTG/freesound
Commit Name: af4878738bf9139d0a3385e315019524e2db8753
Time: 2020-05-25
Author: alastair.porter@upf.edu
File Name: accounts/views.py
Class Name:
Method Name: handle_uploaded_file
Project Name: MTG/freesound
Commit Name: af4878738bf9139d0a3385e315019524e2db8753
Time: 2020-05-25
Author: alastair.porter@upf.edu
File Name: accounts/views.py
Class Name:
Method Name: describe