Add reset_cache on file deletion
Change-Id: I03d316c9bdc586e45402ff877bb52fa211df8cab
This commit is contained in:
parent
b46291d1e9
commit
e3a56cc379
@ -130,6 +130,7 @@ def delete_directory_or_file(data_type, path):
|
||||
os.rmdir(result_path)
|
||||
except Exception:
|
||||
make_response('Directory must be empty to be deleted', 403)
|
||||
api.reset_cache()
|
||||
return jsonify(result='success')
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user