Skip to content

Commit b495d8e

Browse files
committed
Extract path from URL
1 parent 82650ef commit b495d8e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/hdfs_native/cli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def _glob_path(client: Client, glob: str) -> List[str]:
5252
def cat(args: Namespace):
5353
for src in args.src:
5454
client = _client_for_url(src)
55-
for path in _glob_path(client, src):
55+
for path in _glob_path(client, _path_for_url(src)):
5656
with client.read(path) as file:
5757
while chunk := file.read(1024 * 1024):
5858
sys.stdout.buffer.write(chunk)

0 commit comments

Comments
 (0)