Skip to content

Latest commit

 

History

History
203 lines (109 loc) · 3.62 KB

FatFsFileInfo.md

File metadata and controls

203 lines (109 loc) · 3.62 KB

fatfs-wasm / Exports / FatFsFileInfo

Class: FatFsFileInfo

Represents file or directory information returned from stat and iteration functions.

Table of contents

Constructors

Properties

Accessors

Methods

Constructors

constructor

new FatFsFileInfo(size, date, attrib, name)

Parameters

Name Type
size number
date Date
attrib number
name string

Defined in

src/fatfs.ts:377

Properties

attrib

Readonly attrib: number

File attribute flags (see is* methods to get specific flags)

Defined in

src/fatfs.ts:373


date

Readonly date: Date

The last modified date of the file or directory

Defined in

src/fatfs.ts:371


name

Readonly name: string

The name of the file or directory

Defined in

src/fatfs.ts:375


size

Readonly size: number

The size of the file or directory

Defined in

src/fatfs.ts:369

Accessors

isArchive

get isArchive(): boolean

Whether or not the file or directory is archived

Returns

boolean

Defined in

src/fatfs.ts:432


isDirectory

get isDirectory(): boolean

Whether or not the filesystem object is a directory or not

Returns

boolean

Defined in

src/fatfs.ts:422


isHidden

get isHidden(): boolean

Whether or not the file or directory is hidden

Returns

boolean

Defined in

src/fatfs.ts:427


isReadOnly

get isReadOnly(): boolean

Whether or not the file or directory is read-only

Returns

boolean

Defined in

src/fatfs.ts:417


isSystem

get isSystem(): boolean

Whether or not the file or directory is a system file or directory

Returns

boolean

Defined in

src/fatfs.ts:437

Methods

fromFilInfo

Static fromFilInfo(data): FatFsFileInfo

Creates a FatFsFileInfo from a packed FILINFO data structure returned from a FatFS function

Data

Packed FILINFO structure bytes

Parameters

Name Type
data Uint8Array

Returns

FatFsFileInfo

Defined in

src/fatfs.ts:388