From 41c506ae171b17fac667695bac1402cd0ba58b39 Mon Sep 17 00:00:00 2001 From: jpk Date: Mon, 30 May 2022 09:13:28 +0200 Subject: [PATCH] Enforce Path type --- wpsrt/cli.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/wpsrt/cli.py b/wpsrt/cli.py index 62769b9..d2adb29 100644 --- a/wpsrt/cli.py +++ b/wpsrt/cli.py @@ -17,6 +17,8 @@ from .wallpapers import move_wallpaper, scan_directory default=Path("~/Pictures/wallpapers/by-resolution").expanduser(), ) def sort(source: Path, target: Path): + source = Path(source) + target = Path(target) if not target.exists(): target.mkdir() for wallpaper in scan_directory(source):