Skip to content

FileManager.canCreateFileWithExt method

FileManager › canCreateFileWithExt

Unofficial

Check whether a file with the given extension can be created.

Signature:

canCreateFileWithExt(extension: string): boolean

Parameters:

ParameterTypeDescription
extensionstringThe file extension to check.

Returns: booleanWhether a file with the given extension can be created. To get the constructor instance, use getFileManagerConstructor from obsidian-typings/implementations.