I need help to modify the code shown here:
https://blog.darkpan.com/posts/fix-google-takeout-photos-and-videos-timestamps/
to works with my situation as the script in unraid is not in the same folder as the link shown above, so I need to modify the code first to direct the script to run the desired folder.
in this case (thanks AgentXXL supporting member on discord) changed this line of the code:
from
dirname=$(dirname "$json_file")
To
dirname=$(/mnt/user/unraid/homes/googlephoto "$json_file")
When running the code it gives me this error:
Script location: /tmp/user.scripts/tmpScripts/phototest/script
Note that closing this window will abort the execution of this script
find: './sys/kernel/slab': Input/output error
/tmp/user.scripts/tmpScripts/phototest/script: line 4: /mnt/user/unraid/homes/googlephoto: Is a directory
find: './proc/4797/task/4797/net': Invalid argument
find: './proc/4797/net': Invalid argument
find: './proc/4988': No such file or directory
find: './proc/4989': No such file or directory
find: './proc/4998/task/4998/net': Invalid argument
find: './proc/4998/net': Invalid argument
find: 'standard output': Broken pipe
find: write error
Any help?
Note: there is hundreds of json files inside many folders (folder's name have space by the way)