]> code.delx.au - notipod/blobdiff - libnotipod.py
Better error handling, bump to v1.6
[notipod] / libnotipod.py
index 7f1a6b0c31a15b46230d2e4d9baae62b41ff9626..3e30e4d965d61f4e3e664b16a5b8c83d927a031e 100644 (file)
@@ -197,8 +197,6 @@ def sync(dry_run, source, dest, files_to_copy):
                filemap[sf.encoded_filename.lower()] = sf
        files_to_copy = set(filemap)
 
-       if not os.path.isdir(dest):
-               raise OSError("No such file or directory: '%s'" % dest)
        for dirpath, dirnames, filenames in os.walk(dest):
                full_dirpath = dirpath
                dirpath = strip_prefix(dirpath, dest)