๐Ÿ’Ž Obsidian Developer Docs

Home

โฏ

Reference

โฏ

TypeScript API

โฏ

TFile

TFile

2025๋…„ 6์›” 29์ผ1 min read

TFile

TFile class

Signature:

export class TFile extends TAbstractFile 

Extends: TAbstractFile

Properties

PropertyModifiersTypeDescription
basenamestring
extensionstring
namestring

(Inherited from TAbstractFile)

parentTFolder | null

(Inherited from TAbstractFile)

pathstring

(Inherited from TAbstractFile)

statFileStats
vaultVault

(Inherited from TAbstractFile)


๊ทธ๋ž˜ํ”„ ๋ทฐ

  • TFile class
  • Properties

๋ฐฑ๋งํฌ

  • EditableFileView
  • onTrigger
  • EditorSuggestContext
  • generateMarkdownLink
  • processFrontMatter
  • FileView
  • onLoadFile
  • onRename
  • onUnloadFile
  • MarkdownEditView
  • MarkdownPreviewView
  • MarkdownRenderer
  • MarkdownView
  • fileToLinktext
  • getFileCache
  • getFirstLinkpathDest
  • on('changed')
  • on('deleted')
  • on('resolve')
  • TFile
  • basename
  • extension
  • stat
  • TextFileView
  • onLoadFile
  • onUnloadFile
  • append
  • cachedRead
  • create
  • createBinary
  • getFileByPath
  • getFiles
  • getMarkdownFiles
  • getResourcePath
  • modify
  • modifyBinary
  • process
  • read
  • readBinary
  • getActiveFile
  • on('file-open')
  • on('quick-preview')
  • openFile
  • index

Created with Quartz v4.5.1 ยฉ 2025

  • GitHub
  • Discord Community