Skip to content

ResourceLockMode

The scope of a lock.

  • 'file' locks only the exact path. - 'subtree' locks the path and every descendant under it (its whole folder subtree), so a file inside a subtree-locked folder is treated as locked too.

Import:

import type { ResourceLockMode } from 'obsidian-dev-utils/obsidian/resource-lock';

Signature:

export type ResourceLockMode

Signature:

type ResourceLockMode = 'file' | 'subtree'

Type: ‘file’ | ‘subtree’


Links to this page: