Skip to content

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
hhuuggoo committed Mar 14, 2024
1 parent ed091b2 commit 03a10f4
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions saturnfs/client/saturnfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -1419,7 +1419,9 @@ def _rsync(
source = fs._strip_protocol(source)
destination = fs._strip_protocol(destination)
allfiles = fs.find(source, withdirs=True, detail=True)
allfiles = {a: v for a, v in allfiles.items() if not check_exclude_globs(v["name"], exclude_globs)}
allfiles = {
a: v for a, v in allfiles.items() if not check_exclude_globs(v["name"], exclude_globs)
}
if not fs.isdir(source):
raise ValueError("Can only rsync on a directory")
otherfiles = fs.find(destination, withdirs=True, detail=True)
Expand Down Expand Up @@ -1463,4 +1465,4 @@ def _rsync(
fs.cp(source_files, target_files, **kwargs)
logger.debug(f"{len(to_delete)} files to delete")
if delete_missing:
fs.rm(to_delete)
fs.rm(to_delete)

0 comments on commit 03a10f4

Please sign in to comment.