Skip to content

Commit

Permalink
files: sync file access status
Browse files Browse the repository at this point in the history
  • Loading branch information
0einstein0 authored and slint committed Aug 8, 2024
1 parent ae42384 commit 5fd3b53
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,14 @@ def sync(self, src_files, delete_extras=True):
else:
self[f_key] = obj_or_key

# Check for metadata changes
# Check for metadata and access changes
for key, dest_rf in self.entries.items():
if key in src_files:
src_rf = src_files[key]
if src_rf.metadata != dest_rf.metadata:
if (
src_rf.metadata != dest_rf.metadata
or src_rf.access != dest_rf.access
):
obj_or_key = dest_rf.object_version
self[key] = obj_or_key, dict(src_rf)

Expand Down

0 comments on commit 5fd3b53

Please sign in to comment.