Skip to content

Commit 68d4b59

Browse files
committed
Updated pr.
1 parent 837229a commit 68d4b59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ads/common/dsc_file_system.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ def get_destination_path_and_name(dest: str) -> (str, str):
6868
A tuple of destination path and destination directory name.
6969
"""
7070
return (
71-
os.path.dirname(dest.rstrip("/")),
71+
os.path.dirname(dest.rstrip("/")) or None, # when destination path is omitted, oci api requires it to be None
7272
os.path.basename(dest.rstrip("/"))
7373
)
7474

0 commit comments

Comments
 (0)