pub fn set_backup_skip(
paths: &WorkspacePaths,
keys: &[String],
skip: bool,
) -> Result<WorkspaceFile, Diagnostic>Expand description
Records in the workspace at paths that its backup leaves keys out, or takes them in again
when skip is false, and answers with the file as it now stands.
Like add_profile, the file is read again first, so a change made to it meanwhile is kept.
A path already inside a folder that is left out is not added again, and leaving a folder out
drops the entries inside it, which it covers from then on. Taking a path in again takes in
only that path: a file inside a folder that stays left out stays out with it. The file is
written only when the list changed.
ยงErrors
A key that is not a path inside the workspace, and a workspace.qcode that cannot be read, names
no workspace or cannot be written.