question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Last modified timestamp not preserved in Windows

See original GitHub issue

I can’t find any other comments on this, so I have to assume it’s unique to my setup or it’s by design and I missed it in the documentation somewhere.

I’m using Windows 10 with Python 3.6.5, wsgidav 2.4.0. When I run wsgidav --host=0.0.0.0 --port=8080 --root=c:\users\my_user :

I can connect to the share without problems, view and download files without problems. But when I upload a file to the webdav share (I use drag-drop), it gets a new timestamp of “now”. Strangely the new file initially shows its original timestamp, but a refresh (F5) will show the new “now” timestamp.

Is this by design? It’s hard for me to believe that it is because it makes any sort of file sync impossible.

NB: I also see this same behavior in SeaFile, which uses the wsgidav library.

Edit: I also tried using a config file and setting mutable_live_props = ["{DAV:}getlastmodified"] which didn’t help. So I’m guessing this it’s the client not setting “lastmodified” after the upload?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
mar10commented, Jun 16, 2018

I think we can could add it to the standard, since M$ is a common-enough WebDAV client. We should make it configurable, e.g. by an support_win32_properties option. A PR for 3.x would be great.

0reactions
mar10commented, Jun 25, 2018

Merged it, thanks!

I had to make temp patches to other parts of the code in order to test v3.0.0a. I guess you’re not quite finished refactoring. I left those untouched; if you want some pointers I can tell you or submit another PR.

Yes I this was a lot of renaming and PyCharm refactoring probably did not all references right. That’s why I consider it alpha for now. If you could send your changes as PR that would certainly help.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Can preserve date created & date modified date and timestamp?
In this scenario, to preserve the date created & date modified date & timestamps when copying/moving between laptop and OneDrive, ...
Read more >
last accessed timestamp not preserved for FOLDERS
I know last accessed timestamp of files being copied is preserved. But, this is only for files. I have tested copying folders from...
Read more >
How to preserve file attributes when one copies files in ...
Last Modification time: always copied from modification time of the source file. Last Access time: always set to the current system time. Save...
Read more >
Issue with "Modified" timestamps on Windows file copy
When files are copied from a local Windows drive to a local Windows drive, the modified timestamps are preserved regardless of which method ......
Read more >
How to Change File Date or Timestamp in Windows
Windows maintains three different date/timestamps for every file and folder. They are “Date Created,” “Date Modified,” and “Date Accessed.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found