Last modified timestamp not preserved in Windows
See original GitHub issueI 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:
- Created 5 years ago
- Comments:11 (11 by maintainers)
Top GitHub Comments
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.Merged it, thanks!
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.