mirror of
https://github.com/clearml/clearml-server
synced 2025-02-07 05:27:23 +00:00
Fix file delete (bad merge)
This commit is contained in:
parent
8c18660a82
commit
cc83aadae6
@ -65,7 +65,7 @@ def delete(path):
|
||||
fspath(path)
|
||||
)
|
||||
)
|
||||
if not path.exists() or path.is_file():
|
||||
if not path.exists() or not path.is_file():
|
||||
abort(Response(f"File {str(path)} not found", 404))
|
||||
|
||||
path.unlink()
|
||||
|
Loading…
Reference in New Issue
Block a user