-
Notifications
You must be signed in to change notification settings - Fork 74
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Timestamps are lost when copying to device #59
Comments
Yepp, one of those 😉
definitely not.
Doesn't work with |
I still wonder why this happens. If I perform an void adb_push_pull_cmd(string& cmd, const bool push,
const string& local_path, const string& remote_path)
{
cmd.assign("adb ");
cmd.append((push ? "push '" : "pull '"));
cmd.append((push ? local_path : remote_path));
cmd.append("' '");
cmd.append((push ? remote_path : local_path));
cmd.append("'");
}
queue<string> adb_push(const string& local_source,
const string& remote_destination)
{
string cmd;
adb_push_pull_cmd(cmd, true, local_source, remote_destination);
queue<string> res = exec_command(cmd);
invalidateCache(remote_destination);
return res;
} If I'm not mistaken, |
When copying files over adbfs to the device, timestamps are lost – the file shows up as were it just created anew on the device. This happens even when explicitly specifying to keep timestamps (e.g.
rsync -rltDcu
), without any error message being shown (and yes, I have to use-c
there as otherwise timestamps would be messed up on the PC as well when synced back, despite of the-u
). Same happens withcp
or any other means of copying.Is there any way to preserve times?
The text was updated successfully, but these errors were encountered: