Skip to content

Commit

Permalink
Update client.py
Browse files Browse the repository at this point in the history
  • Loading branch information
fti-akumari authored Dec 19, 2024
1 parent d5d9f9b commit 48ed29d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/aioftp/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -517,7 +517,6 @@ def parse_list_line_windows(self, b):
info = {}
info["modify"] = self.format_date_time(date_time)
next_space = line.index(" ")

if line.startswith("<DIR>"):
info["type"] = "dir"
else:
Expand All @@ -531,7 +530,6 @@ def parse_list_line_windows(self, b):
filename = line[next_space:].lstrip()
if filename == "." or filename == "..":
raise ValueError

return pathlib.PurePosixPath(filename), info

def parse_list_line(self, b):
Expand Down

0 comments on commit 48ed29d

Please sign in to comment.