From 7cc40595dc0fcd4e05a48f5ce8ba7d77f322a284 Mon Sep 17 00:00:00 2001 From: I-Al-Istannen Date: Wed, 14 Apr 2021 20:25:25 +0200 Subject: [PATCH] Allow synchronizing to directory "." --- sync_url.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sync_url.py b/sync_url.py index dd88bf7..06a94b3 100755 --- a/sync_url.py +++ b/sync_url.py @@ -121,7 +121,7 @@ def main() -> None: # files may not escape the pferd_root with relative paths # note: Path(Path.cwd, Path(folder)) == Path(folder) if it is an absolute path pferd_root = Path(Path.cwd(), Path(folder)).parent - target = folder.name + target = folder.resolve().name pferd = Pferd(pferd_root, test_run=args.test_run) def dir_filter(_: Path, element: IliasElementType) -> bool: