| |
- cmp_loaded_count(cache_a: datazen.classes.file_info_cache.FileInfoCache, cache_b: datazen.classes.file_info_cache.FileInfoCache, name: str) -> int
- Compute the total difference in file counts (for a named group)
between two caches.
- cmp_loaded_count_from_set(cache_a: datazen.classes.file_info_cache.FileInfoCache, cache_b: datazen.classes.file_info_cache.FileInfoCache, name: str, files: List[str]) -> int
- Count the number of files uniquely loaded to one cache but not the other.
- cmp_total_loaded(cache_a: datazen.classes.file_info_cache.FileInfoCache, cache_b: datazen.classes.file_info_cache.FileInfoCache, known_types: List[str], load_checks: Dict[str, List[str]] = None, logger: logging.Logger = <Logger datazen.classes.file_info_cache (WARNING)>) -> int
- Compute the total difference in file counts for a provided set of named
groups.
- copy(cache: datazen.classes.file_info_cache.FileInfoCache) -> datazen.classes.file_info_cache.FileInfoCache
- Copy one cache into a new one.
- meld(cache_a: datazen.classes.file_info_cache.FileInfoCache, cache_b: datazen.classes.file_info_cache.FileInfoCache) -> None
- Promote all updates from cache_b into cache_a.
- remove_missing_hashed_files(data: Dict[str, Any], removed_data: Dict[str, List[str]]) -> Dict[str, Any]
- Assign new hash data based on the files that are still present.
- remove_missing_loaded_files(data: Dict[str, Any]) -> Dict[str, Any]
- Audit list elements in a dictionary recursively, assume the data is String
and the elements are filenames, assign a new list for all of the elements
that can be located.
- sync_cache_data(cache_data: Dict[str, Any], removed_data: Dict[str, List[str]]) -> Dict[str, Any]
- Before writing a cache to disk we want to de-duplicate items in the loaded
list and remove hash data for files that were removed so that if they
come back at the same hash, it's not considered already loaded.
- time_str(time_s: float) -> str
- Concert a timestamp to a String.
|