Skip to content

TAbstractFile

Defined in: obsidian.d.ts:3987

This can be either a TFile or a TFolder.

Extended by

Constructors

new TAbstractFile()

new TAbstractFile(): TAbstractFile

Returns

TAbstractFile

Properties

deleted

deleted: boolean

Defined in: src/obsidian/augmentations/TAbstractFile.d.ts:8

Whether the file or folder is being deleted


name

name: string

Defined in: obsidian.d.ts:3999


parent

parent: null | TFolder

Defined in: obsidian.d.ts:4003


path

path: string

Defined in: obsidian.d.ts:3995


vault

vault: Vault

Defined in: obsidian.d.ts:3991

Methods

getNewPathAfterRename()

getNewPathAfterRename(newName): string

Defined in: src/obsidian/augmentations/TAbstractFile.d.ts:15

Gets the path after renaming the file or folder.

Parameters

newName

string

The new name of the file or folder.

Returns

string

The new path of the file or folder.