We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 259215f commit 7b774c2Copy full SHA for 7b774c2
fsspec/implementations/ftp.py
@@ -364,15 +364,17 @@ def _mlsd2(ftp, path="."):
364
minfo = []
365
ftp.dir(path, lines.append)
366
for line in lines:
367
- line = line.split()
+ split_line = line.split()
368
+ if len(split_line) < 9:
369
+ continue
370
this = (
- line[-1],
371
+ split_line[-1],
372
{
- "modify": " ".join(line[5:8]),
- "unix.owner": line[2],
373
- "unix.group": line[3],
374
- "unix.mode": line[0],
375
- "size": line[4],
+ "modify": " ".join(split_line[5:8]),
+ "unix.owner": split_line[2],
+ "unix.group": split_line[3],
376
+ "unix.mode": split_line[0],
377
+ "size": split_line[4],
378
},
379
)
380
if "d" == this[1]["unix.mode"][0]:
0 commit comments