tslocum / aafm

!!! Use https://gitlab.com/tslocum/adbfm instead !!! Android ADB file manager
Other
27 stars 4 forks source link

Preserve file date&time using touch once copy completes. #31

Open tslocum opened 10 years ago

tslocum commented 10 years ago

Issue by normanr Wednesday Mar 21, 2012 at 16:34 GMT Originally opened as https://github.com/sole/aafm/issues/31


It would be nice to set the destination file's date&time to match the source file's date&time using touch.

tslocum commented 10 years ago

Comment by sole Tuesday Sep 25, 2012 at 20:31 GMT


So far I'm unable to find a touch command in adb shell. Asked in Stack Overflow, let's see if such thing exists...

tslocum commented 10 years ago

Comment by normanr Thursday Jan 23, 2014 at 23:15 GMT


For phone to PC this shouldn't be a problem. For PC to phone maybe busybox is required then?

tslocum commented 10 years ago

Comment by judepereira Friday Jan 24, 2014 at 00:26 GMT


Or just have default permissions that allow the user to read and write to those files.

Jude Pereira On 24 Jan 2014 04:45, "Norman Rasmussen" notifications@github.com wrote:

For phone to PC this shouldn't be a problem. For PC to phone maybe busybox is required then?

— Reply to this email directly or view it on GitHubhttps://github.com/sole/aafm/issues/31#issuecomment-33180396 .

tslocum commented 10 years ago

Comment by normanr Friday Jan 24, 2014 at 13:35 GMT


@judepereira I don't understand your comment, how does are file permissions and date&time related?

tslocum commented 10 years ago

Comment by normanr Friday Jan 24, 2014 at 13:37 GMT


looks like it exists to me:

$ adb shell
shell@hammerhead:/ $ touch 
touch: no file specified
1|shell@hammerhead:/ $  touch --help                                              
touch: usage: touch [-alm] [-t YYYYMMDD[.hhmmss]] <file>
1|shell@hammerhead:/ $