Skip to main content

set_backup_assets

Function set_backup_assets 

Source
pub fn set_backup_assets(
    paths: &WorkspacePaths,
    assets: bool,
) -> Result<WorkspaceFile, Diagnostic>
Expand description

Records in the workspace at paths whether its backup takes Assets/ too, and answers with the file as it now stands. The file is read again first, as for set_backup_skip, and written only when the choice changed.

ยงErrors

A workspace.qcode that cannot be read, names no workspace or cannot be written.