Skip to content

Commit

Permalink
Update sftp_target.py
Browse files Browse the repository at this point in the history
Update #73
  • Loading branch information
mar10 committed Jul 1, 2022
1 parent ac1d0ff commit 1565180
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions ftpsync/sftp_target.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,11 +389,12 @@ def _get_dir_impl(self):
is_dir = stat.S_ISDIR(de.st_mode)
name = de.filename
entry = None
if is_dir:
if name not in (".", ".."):
entry = DirectoryEntry(
self, self.cur_dir, name, de.st_size, de.st_mtime, unique=None
)
if name in (".", ".."):
continue # 74: some servers may send those
elif is_dir:
entry = DirectoryEntry(
self, self.cur_dir, name, de.st_size, de.st_mtime, unique=None
)
elif name == DirMetadata.META_FILE_NAME:
# the meta-data file is silently ignored
has_meta = True
Expand Down

0 comments on commit 1565180

Please sign in to comment.