RamFileType

A File type.

File types are typically used with RamPipe.

Inherits: RamObject

Static Methods

Method Arguments Description
fromDict
RamFileType
dict or object: fileTypeDict Builds a RamFileType from a dict or object like the one returned by the RamDaemonInterface

Methods

Method Arguments Description
constructor string: name,
string: shortName,
list of strings: extensions
check
boolean
string: filePath Checks if the given file is of this type.
extensions
list of string
The extensions which can be used for this file type, including the “.”

API Dev notes

Note

These section is for the development of the API only; you should not need these when developping your add-on using the API.

(Im)mutable data

The data returned by the methods can be either mutable or immutable.

Method Type of the returned data
extensions Immutable

META