Skip to main content

Module cloud_files

Module cloud_files 

Source
Expand description

Detection of cloud-backed placeholder files (OneDrive “Files On-Demand” on Windows, iCloud Drive “dataless” files on macOS).

Such files keep their contents in the cloud; merely opening or reading one forces the OS to download (“hydrate”) it — slow, bandwidth-/quota-hungry, and on Windows it triggers OneDrive sync warnings (#363). lean-ctx must never hydrate files just to index them in the background, so every directory scan prunes placeholders via keep_entry. Detection is metadata-only (file attributes / stat flags) and therefore never triggers a download.

Functions§

is_cloud_placeholder
keep_entry
Predicate for ignore::WalkBuilder::filter_entry: prune cloud placeholders so a scan never descends into — or reads — an un-hydrated file or directory.