mirror of
https://github.com/clearml/clearml
synced 2025-06-26 18:16:07 +00:00
Raise error in case of missing artifact directory
This commit is contained in:
@@ -347,7 +347,7 @@ class Artifacts(object):
|
||||
|
||||
if create_zip_file:
|
||||
folder = Path('').joinpath(*artifact_object.parts[:-1])
|
||||
if not folder.is_dir():
|
||||
if not folder.is_dir() or not folder.parts:
|
||||
raise ValueError("Artifact file/folder '{}' could not be found".format(
|
||||
artifact_object.as_posix()))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user