tylerhall/photoz

Errors: couldn't be opened"; and "Not a directory"

Closed this issue · 3 comments

When running 'photoz import'...

~ % /Users/MyUsername/Library/Developer/Xcode/DerivedData/photoz-gvigsenhhofxjyfwpneotpnvkiev/Build/Products/Debug/photoz import /Volumes/MyPathToUSBDrive/Google_Takeout/Google_Takeout-July2021/takeout-20210718T225523Z-001.tgz  /Volumes/MyPathToUSBDrive/Google_Takeout/Google_Takeout-July2021/Photoz_Cleaned_Library

I get the following error:

photoz/Methods.swift:151: Fatal error: 'try!' expression unexpectedly raised an error: Error Domain=NSCocoaErrorDomain Code=256 "The file “takeout-20210718T225523Z-001.tgz” couldn’t be opened." UserInfo={NSURL=file:///MyPath/takeout-20210718T225523Z-001.tgz, NSFilePath=/MyPath/takeout-20210718T225523Z-001.tgz, NSUnderlyingError=0x155e1ba80 {Error Domain=NSPOSIXErrorDomain Code=20 "Not a directory"}}'

"Not a directory"

You need to run the import command on the extracted .tgz from Google Takeout that you want to import. Not on the .tgz itself.

Maybe I'm not picking up on some subdelty of what you're saying. What is the extracted .tgz? Is it the .tar, or is it the /Takeout/Google Photos/... directory that's the result of extracting the .tgz?

Sorry, yeah. It should be run again the directory that is the result of extracting the Takeout archive.