drive icon indicating copy to clipboard operation
drive copied to clipboard

Push of directory changes file modification times

Open neilromig opened this issue 10 years ago • 7 comments

I am pushing a directory to my Google Drive account and files in uploaded directories and subdirectories all have their times (modification, access and change) set to the time drive has uploaded them. Those not uploaded remain unaltered.

neilromig avatar Dec 24 '14 06:12 neilromig

Yes, I would assume that it wouldn't even do a push since the files are the same. If I do a push on a directory and then do the same command again without changing any files, I would expect the push command to say 'up to date'. But it does another full push again.

ikwyl6 avatar Dec 28 '14 12:12 ikwyl6

My main issue with this that the program should not appear to modify the files it uploads.

neilromig avatar Dec 30 '14 08:12 neilromig

But then how will the last edit time match up between your local files and those on the cloud? Why is this an issue? See everytime a push is made, the mod time for the file remotely is changed. The change is just to keep times in sync.

odeke-em avatar Dec 30 '14 08:12 odeke-em

It is an issue bevause the mod time for the file should only change if the file has been modified. The copy on the cloud should have the local mod time if it has just been pushed.

neilromig avatar Dec 30 '14 15:12 neilromig

yes I agree with @neilromig. The modified time should match what is on the source with a push and same with a pull from google.

ikwyl6 avatar Dec 31 '14 03:12 ikwyl6

I agree also. It would be nice if drive did not change modification times. If it is necessary to keep the modification times in sync then it should send the modification time along with the file.

By the way, thank you @odeke-em for keeping this project alive!

codecentaur avatar Jan 04 '15 21:01 codecentaur

Please checkout the latest from my fork since the project moved there, and then reopen the issue there if it persists. @mattlbaker glad you are able to use drive.

odeke-em avatar Jan 04 '15 21:01 odeke-em