Skip to content

Commit 7fd43b0

Browse files
committed
stop directory walk before appending share root
1 parent 5259c30 commit 7fd43b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/azure-cli/azure/cli/command_modules/storage/operations

‎src/azure-cli/azure/cli/command_modules/storage/operations/file.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -512,7 +512,7 @@ def _make_directory_in_files_share(file_service, directory_path, existing_dirs=N
512512

513513
parents = [directory_path]
514514
p = os.path.dirname(directory_path)
515-
while p and p != parents[-1]:
515+
while p and p != os.path.dirname(p):
516516
parents.append(p)
517517
p = os.path.dirname(p)
518518

0 commit comments

Comments
 (0)