mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-11-05 06:43:48 -05:00
"Track this folder as a source" is our vocabulary, not a person's, and it cannot answer what they get for doing it. Everything on the drive is already searchable before anyone chooses anything. What the library adds is the part a walk cannot rebuild: tags and notes that stay put, files still listed when the drive is unplugged, sync to another device. So the gesture is Add to Library, on a directory, in the explorer context menu. Photos, Music and Lightroom all landed on the same word because people already have it, and Spacedrive has libraries too. Home goes in on the first library open, because it is the answer almost everyone would give if asked which folder that should be, and asking is worse than doing it. Once only: any registered source means the person has made their own arrangements, so one removed on purpose does not come back next launch. Anchoring needed fixing first. volume_for_path is a prefix test, and /Users/me is not under /System/Volumes/Data, so tracking home would have dropped the anchor and started a second map of files the drive already holds. locate_path returns the volume and the path as that volume spells it, deciding it by inode rather than by a platform table, and track_and_index takes the volume's spelling over the caller's.