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:

Parameter Type Description
extension string The 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.