You are not logged in.

#1 2021-07-14 18:11:47

quellen
Member
From: Italy
Registered: 2014-05-24
Posts: 364

cp doesn't preserve original timestamps on Android

hello folks.
when i copy some files on my android smarthphone (MTP) it doesn't preserve original timestamps. i use "cp -p" and "cp --preserve=timestamps" command and i mount it with "aft-mtp-mount". Why?

Last edited by quellen (2021-07-14 18:34:35)


sorry for my bad english

Offline

#2 2021-07-14 19:15:13

V1del
Forum Moderator
Registered: 2012-10-16
Posts: 25,337

Re: cp doesn't preserve original timestamps on Android

MTP doesn't work on the block layer and any permissions/timestamps are not going to be carried over. This is likely to be an inherent MTP limitation that you won't be able to do much about.

I suggest you use something that's more intelligent like using a FTP server/client or so.

Last edited by V1del (2021-07-14 19:18:15)

Offline

Board footer

Powered by FluxBB