Today I moved around five years' worth of photos with pcmanfm on 13.1-RELEASE.
I was surprised to discover that pcmanfm had changed the modification times. For instance, a file modified in 2018 showed up with as having been modified today, post-move.
Thankfully creation times were still visible with
I did this to revert modification times back to creation times, and it worked.
But is there an easier way?
Thank you very much.
I was surprised to discover that pcmanfm had changed the modification times. For instance, a file modified in 2018 showed up with as having been modified today, post-move.
Thankfully creation times were still visible with
ls -lU
.I did this to revert modification times back to creation times, and it worked.
But is there an easier way?
Code:
zsh% for X Y in $(ls -lUD %Y%m%d%H%M.%S | awk '{print $6 " " $7}'); do
> touch -t $X $Y
> done
Thank you very much.