From d066435e3df4062be6a0a3d5fa7308f293e764d5 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Sun, 22 Mar 2020 13:04:00 -0700 Subject: [PATCH] Updated pathvalidate calls --- osxphotos/__main__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osxphotos/__main__.py b/osxphotos/__main__.py index 1ebdc688..a2429d67 100644 --- a/osxphotos/__main__.py +++ b/osxphotos/__main__.py @@ -1408,8 +1408,8 @@ def export_photo( click.echo( f"Possible unmatched substitution in template: {unmatched}", err=True ) - dirname = sanitize_filepath(dirname) - if not is_valid_filepath(dirname): + dirname = sanitize_filepath(dirname, platform="auto") + if not is_valid_filepath(dirname, platform="auto"): raise ValueError(f"Invalid file path: {dirname}") dest = os.path.join(dest, dirname) if not os.path.isdir(dest):