Skip to content

Google Photos Takout (300GB+) running in issue: PathNotFoundException: Cannot retrieve length of file, path = #443

@Joe-hun

Description

@Joe-hun

Finally managed to download and merge my 300GB size photo files from Google Takeout and now I am trying to get back the metadata from .json files and transfer them to Synology NAS. But hey, there is a constant and flustrating issue: Every time I am starting gpth-macos, there is a problem with a file:

Unhandled exception:
PathNotFoundException: Cannot retrieve length of file, path = '/Volumes/Downloads/GOOGLE TAKEOUT 2K/Takeout/Google Photos/Photos from 2016/IMG_20160130_100301(1).jpg' (OS Error: No such file or directory, errno = 2)
#0 _File.throwIfError (dart:io/file_impl.dart:675)
#1 _File.lengthSync (dart:io/file_impl.dart:398)
#2 Media.size (package:gpth/media.dart:39)
#3 Group.groupIdentical. (package:gpth/grouping.dart:24)
#4 IterableExtension.groupListsBy (package:collection/src/iterable_extensions.dart:410)
#5 Group.groupIdentical (package:gpth/grouping.dart:24)
#6 removeDuplicates. (package:gpth/grouping.dart:54)
#7 MappedIterator.moveNext (dart:_internal/iterable.dart:393)
#8 IterableIterableExtension.flattened (package:collection/src/iterable_extensions.dart:880)
#9 _SyncStarIterator.moveNext (dart:async-patch/async_patch.dart:554)
#10 removeDuplicates (package:gpth/grouping.dart:57)
#11 main (file:///Users/runner/work/GooglePhotosTakeoutHelper/GooglePhotosTakeoutHelper/bin/gpth.dart:294)

I desperately tried to delete this files, but next time there is an other one. I have about 200k files in that folders, so if only 0.1% of these has problems, I will get old until I get them done.

I admint, I am not an expert, and I have no idea how to solve this problem. If you are, please, help me!

PS: I hate Google to do this with us! This should be a crime!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions