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 committed Aug 8, 2024
1 parent 5ce23d2 commit 15464a8
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -367,11 +367,11 @@ 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 15464a8

Please sign in to comment.