Skip to content

fix creation and modification date/time for files transferred to macbook using OpenMTP

License

Notifications You must be signed in to change notification settings

ganeshrvel/openmtp-update-files-to-system-time

Repository files navigation

Fix creation and modification date/time for files transferred to macbook using OpenMTP

It will read the exif information of images or videos and update the creation and modification date/time of those file.

Requirement: nodejs 16+

WARNING: BACKUP your files before running this script

  • To run the script goto images_videos.mjs and change the camDir to any path which contains images and videos.
  • This will only work for images and videos

on macos run:

  cd /to/some/path
  git clone https://github.com/ganeshrvel/openmtp-update-files-to-system-time
  
  npm install -g zx
  brew update
  brew install exiftool
 

export these variables this before running the script

  export LC_CTYPE=en_US.UTF-8 && export LC_ALL=en_US.UTF-8
  zx ./images_videos.mjs

About

fix creation and modification date/time for files transferred to macbook using OpenMTP

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published