From f64c4ed374c120a95fe8adea26bd44852ca67e31 Mon Sep 17 00:00:00 2001 From: Rhet Turnbull Date: Thu, 14 Oct 2021 21:29:45 -0700 Subject: [PATCH] Fixed FileUtil to use correct import --- osxphotos/fileutil.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/osxphotos/fileutil.py b/osxphotos/fileutil.py index b3518bca..4e55a04f 100644 --- a/osxphotos/fileutil.py +++ b/osxphotos/fileutil.py @@ -7,7 +7,7 @@ import subprocess import sys from abc import ABC, abstractmethod -import CoreFoundation +import Foundation from .imageconverter import ImageConverter @@ -114,7 +114,7 @@ class FileUtilMacOS(FileUtilABC): if dest.is_dir(): dest /= src.name - filemgr = CoreFoundation.NSFileManager.defaultManager() + filemgr = Foundation.NSFileManager.defaultManager() error = filemgr.copyItemAtPath_toPath_error_(str(src), str(dest), None) # error is a tuple of (bool, error_string) # error[0] is True if copy succeeded