fatfs-wasm / Exports / FatFsFileInfo
Represents file or directory information returned from stat and iteration functions.
• new FatFsFileInfo(size
, date
, attrib
, name
)
Name | Type |
---|---|
size |
number |
date |
Date |
attrib |
number |
name |
string |
• Readonly
attrib: number
File attribute flags (see is* methods to get specific flags)
• Readonly
date: Date
The last modified date of the file or directory
• Readonly
name: string
The name of the file or directory
• Readonly
size: number
The size of the file or directory
• get
isArchive(): boolean
Whether or not the file or directory is archived
boolean
• get
isDirectory(): boolean
Whether or not the filesystem object is a directory or not
boolean
isHidden
• get
isHidden(): boolean
Whether or not the file or directory is hidden
boolean
• get
isReadOnly(): boolean
Whether or not the file or directory is read-only
boolean
• get
isSystem(): boolean
Whether or not the file or directory is a system file or directory
boolean
▸ Static
fromFilInfo(data
): FatFsFileInfo
Creates a FatFsFileInfo from a packed FILINFO data structure returned from a FatFS function
Data
Packed FILINFO structure bytes
Name | Type |
---|---|
data |
Uint8Array |