|
|
|
|
@ -35,9 +35,9 @@ def getFolderJSON(subpath = ''):
|
|
|
|
|
full_path = os.path.join(video_path, subpath) |
|
|
|
|
errors, paths = [], [] |
|
|
|
|
|
|
|
|
|
current_app.logger.debug('video_path: {}'.format(video_path)) |
|
|
|
|
current_app.logger.debug('subpath: {}'.format(subpath)) |
|
|
|
|
current_app.logger.debug('full_path: {}'.format(full_path)) |
|
|
|
|
current_app.logger.debug( |
|
|
|
|
'video_path: {}, subpath: {}, full_path: {}'.format(video_path, subpath, full_path) |
|
|
|
|
) |
|
|
|
|
|
|
|
|
|
# validate input |
|
|
|
|
if re.search('\.\.', subpath) or not os.path.exists(full_path): |
|
|
|
|
|