You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When uploading files via , the file modification times are not preserved. Files get new modification times set to the upload time instead of keeping their original timestamps. This causes issues with:
Problem
When uploading files via , the file modification times are not preserved. Files get new modification times set to the upload time instead of keeping their original timestamps. This causes issues with:
Current Behavior
Client side (
src/basic_memory/cli/commands/cloud/upload.py:86-91):Server side (
apps/api/src/basic_memory_cloud_api/webdav.py:203-248):Expected Behavior
Files uploaded via WebDAV should retain their original modification times.
Solution
Implement modification time preservation in both client and server:
st_mtimeand send as HTTP header (e.g.,X-OC-MtimeorWin32LastModifiedTime)os.utime()to set it after writing fileAffected Components
basic-memory: CLI upload command (client side)basic-memory-cloud: WebDAV server (server side)Related Issues