Interface File

Hierarchy

Index

Properties

Methods

Properties

public bubbleParent: boolean

public executable: boolean

public hidden: boolean

public name: string

public nativePath: string

public parent: File

public readonly: boolean

public remoteBackup: boolean

public size: number

public symbolicLink: boolean

public writable: boolean

public writeable: boolean

Methods

public addEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public append(data: string): boolean

Parameters

  • data: string

Returns

boolean

public append(data: Blob): boolean

Parameters

Returns

boolean

public append(data: File): boolean

Parameters

Returns

boolean

public applyProperties(props: Dictionary)

Parameters

public copy(destinationPath: string): boolean

Parameters

  • destinationPath: string

Returns

boolean

public createDirectory(): boolean

Returns

boolean

public createFile(): boolean

Returns

boolean

public createTimestamp(): number

Returns

number

public deleteDirectory(recursive?: boolean): boolean

Parameters

  • recursive?: boolean optional

Returns

boolean

public deleteFile(): boolean

Returns

boolean

public exists(): boolean

Returns

boolean

public extension(): string

Returns

string

public fireEvent(name: string, event: Dictionary)

Parameters

public getBubbleParent(): boolean

Returns

boolean

public getDirectoryListing(): Array<String>

Returns

Array<String>

public getExecutable(): boolean

Returns

boolean

public getHidden(): boolean

Returns

boolean

public getName(): string

Returns

string

public getNativePath(): string

Returns

string

public getParent(): any

Returns

any

public getReadonly(): boolean

Returns

boolean

public getRemoteBackup(): boolean

Returns

boolean

public getSize(): number

Returns

number

public getSymbolicLink(): boolean

Returns

boolean

public getWritable(): boolean

Returns

boolean

public getWriteable(): boolean

Returns

boolean

public isDirectory(): boolean

Returns

boolean

public isFile(): boolean

Returns

boolean

public modificationTimestamp(): number

Returns

number

public move(newpath: string): boolean

Parameters

  • newpath: string

Returns

boolean

public open(mode: number): FileStream

Parameters

  • mode: number

Returns

FileStream

public read(): Blob

Returns

Blob

public removeEventListener(name: string, callback: (...args: any[]) => any)

Parameters

  • name: string
  • callback: (...args: any[]) => any

public rename(newname: string): boolean

Parameters

  • newname: string

Returns

boolean

public resolve(): string

Returns

string

public setBubbleParent(bubbleParent: boolean)

Parameters

  • bubbleParent: boolean

public setHidden(hidden: boolean)

Parameters

  • hidden: boolean

public setRemoteBackup(remoteBackup: boolean)

Parameters

  • remoteBackup: boolean

public spaceAvailable(): number

Returns

number

public write(data: string, append?: boolean): boolean

Parameters

  • data: string
  • append?: boolean optional

Returns

boolean

public write(data: File, append?: boolean): boolean

Parameters

  • data: File
  • append?: boolean optional

Returns

boolean

public write(data: Blob, append?: boolean): boolean

Parameters

  • data: Blob
  • append?: boolean optional

Returns

boolean