in ees_network_drive/sync_network_drives.py [0:0]
def get_storage_with_collection(self, local_storage):
"""Returns a dictionary containing the locally stored IDs of files fetched from network drives
:param local_storage: The object of the local storage used to store the indexed document IDs
"""
storage_with_collection = {"global_keys": {}, "delete_keys": {}}
ids_collection = local_storage.load_storage()
storage_with_collection["delete_keys"] = copy.deepcopy(ids_collection.get("global_keys"))
if not ids_collection["global_keys"]:
ids_collection["global_keys"] = {"files": {}}
storage_with_collection["global_keys"] = copy.deepcopy(ids_collection["global_keys"])
return storage_with_collection