Skip to content

Commit

Permalink
fs_gkeep: Correct how we fetch items from filesystem side
Browse files Browse the repository at this point in the history
  • Loading branch information
bergercookie committed Jan 29, 2024
1 parent 1f46649 commit 53c19c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syncall/filesystem/filesystem_side.py
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ def get_item(self, item_id: ID, use_cached: bool = False) -> Optional[Filesystem

def _get_item_refresh(self, item_id: ID) -> Optional[FilesystemFile]:
"""Search for the FilesystemFile in the root directory given its ID."""
fs_files = [FilesystemFile(path) for path in self._filesystem_root.iterdir()]
fs_files = self.get_all_items()

matching_fs_files = [fs_file for fs_file in fs_files if fs_file.id == item_id]
if len(matching_fs_files) > 1:
Expand Down

0 comments on commit 53c19c2

Please sign in to comment.