Timestamp changed!! (root user)

Support for Android version of Total Commander

Moderators: white, sheep, Hacker, Stefan2

Post Reply
New Member
New Member
Posts: 1
Joined: 2018-11-09, 00:41 UTC

Timestamp changed!! (root user)

Post by *tad_u » 2018-11-09, 01:29 UTC

Yesterday, I moved thousands of files from a directory to a newly created subdirectory, both on an external micro sd (I mean, it's in the phone, but not sdcard).
To my surprise, the timestamps of all files were changed to the time of moving the files.
I have root access and checked "root everywhere" in configurations. I don't remember this happening in the past.
Anyone know how this could happen?
Is there a way to get the original timestamps back?
I am kind of afraid of moving any files know.

User avatar
Site Admin
Site Admin
Posts: 36500
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland

Re: Timestamp changed!! (root user)

Post by *ghisler(Author) » 2018-11-12, 10:14 UTC

Moving files between volumes (e.g. internal /storage/emulated/0 to SD card) means copying the data, and then deleting the originals. Unfortunately there is no function in regular Android to copy the timestamps. It is possible in root mode, but only to physical directories like /storage/emulated/0, not to virtual folders. Therefore timestamps are lost when copying/moving to SD cards if they are read only for regular apps. Since you have root, you should make Android mount the card so all apps can write to it.
Author of Total Commander

Post Reply