github Xentraxx/GooglePhotosTakeoutHelper_Neo v6.4.3

one hour ago

๐Ÿž Bug Fixes

  • Full-account Takeouts no longer resolve to an unrelated service folder (issue #156) โ€” PathResolverService accepted the input folder itself whenever any of its child folders merely contained a media file. In a full-account export the Takeout root meets that condition (e.g. via Google Notizen), so it was treated as the Google Photos folder and Keep/Drive files were processed. With archives, the resolver returned the first subfolder matching the same weak rule, which depended on filesystem listing order and picked Drive. A folder named Takeout (including multi-part roots such as Takeout 2) is now never accepted as the Google Photos folder, and candidates inside a Takeout root are ranked deterministically: localized Photos from YYYY year folders first, then folders holding per-media JSON sidecars (album-only exports), and the legacy media-file rule only outside a Takeout root. Directory listings are sorted, and an ambiguous result aborts with a message listing the candidates instead of silently processing the wrong folder.
  • --input now clearly points at the Google Photos folder โ€” CLI help, the interactive picker prompt, README examples/options and the resolution error message all say to pass e.g. ~/Takeout/Google Photos (localized folder name) instead of the Takeout root.
  • The effective Google Photos folder is written to the log file โ€” every run logs Resolved Google Photos folder: <path> (including the late-extraction and --keep-input clone paths), so the processed folder can be verified afterwards.
  • RAW EXIF date extraction no longer crashes on TIFF-based RAW files whose tag data lies past the 64 KiB head (e.g. 5G4A9394-uncompressed.DNG) โ€” ExifDateExtractor reads only the first 64 KiB of large files for the fast native exif_reader path. TIFF-based containers (DNG/TIFF/RAW) may store IFD values beyond that window, so exif_reader threw an uncaught RangeError (end): Invalid value: Only valid value is 0: 1 while reading a tag, failing Step 4 for the whole file. A rejected head-only read is now retried once with the complete file (recovering the correct DateTimeOriginal), and any remaining parser error is logged and treated as a native miss so the existing ExifTool fallback can take over instead of aborting.

โš™๏ธ Maintenance

  • Updated win32 to 6.4.0 โ€” the three FFI call sites (PlatformService.getDiskFreeSpace, WindowsSymlinkService, UpdateCreationTimeService) were migrated to the 6.x API: PCWSTR strings via arena.pcwstr()/toPcwstr(), strongly typed handles (HANDLE.isValid, HANDLE.close()) and enum extension types (FILE_SHARE_MODE, FILE_FLAGS_AND_ATTRIBUTES, SYMBOLIC_LINK_FLAGS), and Win32Result<T> so CreateFile/CreateSymbolicLink/GetFileAttributes/GetVolumeInformation/GetDiskFreeSpaceEx failures use the error code captured atomically at the call instead of a possibly-clobbered GetLastError(). Win32 6.3+ no longer ships a native helper DLL, so no MSVC or build-hook requirement is added; ffi_leak_tracker is pulled in transitively.

๐Ÿงช Tests

  • RAW EXIF regression test โ€” asserts the cached 5G4A9394-uncompressed.DNG yields its real 2017-01-05 13:52:55 timestamp through the head-only โ†’ full-file retry path instead of throwing.
  • .tgz e2e content check now runs with EXIF writing disabled โ€” the test compared the extracted JPEG byte-for-byte with the fabricated fixture while Step 7 was enabled, so on machines with ExifTool (CI/Linux) the injected EXIF made the comparison fail. The test now keeps writeExif off, so it verifies the archive round-trip itself rather than EXIF output.
  • Regression tests for issue #156: full-account layouts (German Google Fotos, Keep image, Drive subfolders) resolve correctly from the Takeout root and from its parent regardless of directory creation order; album-only exports resolve via JSON sidecars; ambiguous layouts throw instead of guessing; an e2e test verifies that only Google Photos files are moved while Drive/Keep files stay untouched, both for extracted folders and for the built-in tgz extraction path.

Full Changelog: v6.4.2...v6.4.3

Don't miss a new GooglePhotosTakeoutHelper_Neo release

NewReleases is sending notifications on new releases.