FileManager.canCreateFileWithExt method
FileManager › canCreateFileWithExt
Unofficial
Check whether a file with the given extension can be created.Signature:
canCreateFileWithExt(extension: string): booleanParameters:
| Parameter | Type | Description |
|---|---|---|
| extension | string | The file extension to check. |
Returns: boolean — Whether a file with the given extension can be created. To get the constructor instance, use getFileManagerConstructor from obsidian-typings/implementations.