prefer term dir
over folder
This commit is contained in:
@@ -88,9 +88,9 @@ class FilesListAPI(Resource):
|
||||
absolute_path = os.path.join(absolute_path_root, f)
|
||||
|
||||
if os.path.isdir(absolute_path):
|
||||
items_list.append((f, relative_path, 'folder'))
|
||||
items_list.append((f, relative_path, "dir"))
|
||||
else:
|
||||
items_list.append((f, relative_path, 'file'))
|
||||
items_list.append((f, relative_path, "file"))
|
||||
|
||||
project_files = dict(
|
||||
parent_path=parent_path,
|
||||
|
@@ -1,7 +1,7 @@
|
||||
class Config(object):
|
||||
DEBUG=True
|
||||
class Config:
|
||||
DEBUG = True
|
||||
|
||||
class Development(Config):
|
||||
STORAGE_PATH='/Volumes/PROJECTS/storage'
|
||||
UPLOAD_FOLDER = '/Volumes/PROJECTS/storage_staging'
|
||||
STORAGE_PATH = "/Volumes/PROJECTS/storage"
|
||||
UPLOAD_FOLDER = "/Volumes/PROJECTS/storage_staging"
|
||||
ALLOWED_EXTENSIONS = {'txt', 'mp4', 'png', 'jpg', 'jpeg', 'gif', 'blend', 'zip'}
|
||||
|
Reference in New Issue
Block a user