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
VFS doesn't update mtime for directories #6335
Comments
Ah, you mean this code Lines 633 to 637 in 2f461f1
This needs to do the equivalent of what happens to the file in the lines above Lines 627 to 632 in 2f461f1
So it needs to call an equivalent of this Lines 465 to 471 in 2f461f1
Note that we don't want to just make a new directory node as that will cause there to be two nodes pointing to the same directory which will cause trouble later! It should be a fairly easy patch if you want to have a go? |
The VFS directory cache layer didn't update directory properties like the last modified time at all, as the new objects were not used. The same problem is already solved for files, implement the same solution for directories. Fixes rclone#6335
What is the problem you are having with rclone?
I'm using
serve webdav
to serve a local directory over WebDAV. This works fine except that the VFS layer doesn't update the mtime (ModTime) of directories even afterdir-cache-time
has expired. Debugging revealed that the problem is indir.go:635
where rclone reusesnode
(which has the old modTime),item
(the new value with the correct modTime) is just discarded.I'm not familiar with the design principles of the rclone VFS layer so I'm not sure what the right fix here is.
What is your rclone version (output from
rclone version
)Self-built from revision 2f461f1
Which OS you are using and how many bits (e.g. Windows 7, 64 bit)
Linux x86_64
The text was updated successfully, but these errors were encountered: