We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b495d8e commit 57fd9feCopy full SHA for 57fd9fe
python/hdfs_native/cli.py
@@ -63,9 +63,9 @@ def cat(args: Namespace):
63
def mkdir(args: Namespace):
64
create_parent = args.parent
65
66
- for path in args.path:
67
- client = _client_for_url(path)
68
- client.mkdirs(path, create_parent=create_parent)
+ for url in args.path:
+ client = _client_for_url(url)
+ client.mkdirs(_path_for_url(url), create_parent=create_parent)
69
70
71
def mv(args: Namespace):
@@ -81,7 +81,9 @@ def mv(args: Namespace):
81
pass
82
83
resolved_src = [
84
- path for pattern in args.src for path in _glob_path(client, pattern)
+ path
85
+ for pattern in args.src
86
+ for path in _glob_path(client, _path_for_url(pattern))
87
]
88
89
if len(resolved_src) > 1 and not dst_isdir:
0 commit comments