whoozle / android-file-transfer-linux

Android File Transfer for Linux (and macOS!)
http://whoozle.github.io/android-file-transfer-linux/
GNU Lesser General Public License v2.1
1.47k stars 120 forks source link

Can't modify ctime or mtime ? #342

Open whinis opened 2 months ago

whinis commented 2 months ago

So I am unsure how to debug this further as I don't get any error messages but also nothing is changed. At some point in phone transfers my photos got messed up and most of my photos are dated 2023-03-14. I mounted the phone and had a python script try and set the mtime using os.utime however whenever I read them back it was still 2023-03-14. Then I tried using filedate and the same issue, both ctime and mtime are still 2023-03-14.

I then tried to get properties using the cli and get an error

aft-mtp-cli "cd DCIM" "cd Camera" "properties 20171013_085359.jpg"

Device::Find failed:map::at
selected storage 65537  Internal shared storage
querying supported properties for format ExifJpeg
properties supported: 
error: Get: invalid response code InvalidParameter (0x201d)