pub fn keep_moved(
root: &Path,
part: &str,
file: &str,
path: &Path,
now_ms: i64,
) -> Result<u64, String>Expand description
A file another device’s change takes out, moved here as it is: nothing
copied (it was going anyway), and no reference to its content, which
leaves the sharing folder as soon as every device that counts read that it
was taken out (share::removed_due): this version stays its 30 days.
Copied (keep) when it cannot be moved (another disk: on a phone, the
notes are in its shared storage, the history in Sioul’s own), and when
the file has other names (hard links): moved, the history would hold the
one file they share, and make it yours alone under each. The bytes it
copied (0 when moved), for the exchange’s bound on copies
(share::TAKE_OUT_COPIES).