Skip to content

Commit

Permalink
fix --exclude. update README
Browse files Browse the repository at this point in the history
  • Loading branch information
Junker committed Jul 31, 2021
1 parent 6d47aa9 commit 84ebfee
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ $ davesync.py /home/bob/mydata https://nextcloud.example.org/remote.php/dav/file
--webdav-user=bob \
--webdav-password 123 \
--gpg-passphrase qwe \
--delete \
--verbose
```

Expand Down
2 changes: 1 addition & 1 deletion davesync.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ def upload_metadata(metadata):

local_base = args.local_base.rstrip('/')
remote_base = args.remote_base.rstrip('/')
excluded_rgxs = list(map(lambda pattern: re.compile(fnmatch.translate(pattern)), args.exclude))
excluded_rgxs = list(map(lambda pattern: re.compile(fnmatch.translate(pattern)), args.exclude)) if args.exclude else []

assert_on_bad_dir(local_base)

Expand Down

0 comments on commit 84ebfee

Please sign in to comment.