Skip to main content

clear

Function clear 

Source
pub(crate) fn clear(
    path: &Path,
    binding: &KeyBinding,
    now_secs: u64,
) -> Result<()>
Expand description

Delete the file (a logout, or a refusal). Nothing is wrong if it is not there. When it cannot be deleted (a sharing violation, a scanner holding it) it is replaced by a file with no sessions; only when that fails too is the error returned, and the file, with whatever sessions it holds, is still there.