Classes
FileSystemEntity
Represents a single entity on the file system.
Summary β
Constructors
Properties
Methods
Constructors β
constructor β
new FileSystemEntity(): FileSystemEntity
Returns FileSystemEntity
Properties β
lastModified β
Gets the Date object specifying the last time this entity was modified.
name β
Gets the name of the entity.
parent β
parent: Folder
Gets the Folder object representing the parent of this entity.
Will be null for a root folder like Documents or Temporary.
This property is readonly.
path β
Gets the fully-qualified path (including the extension for a File) of the entity.
Methods β
remove β
Removes (deletes) the current Entity from the file system.
Returns Promise<any>
removeSync β
Removes (deletes) the current Entity from the file system synchronously.
Parameter Default Description
onError
(error: any) => any
Returns void
rename β
Renames the current entity using the specified name.
Parameter Default Description
newName
string
The new name to be applied to the entity.
Returns Promise<any>
renameSync β
Renames the current entity synchronously, using the specified name.
Parameter Default Description
newName
string
The new name to be applied to the entity.
onError
(error: any) => any
Returns void
- Previous
- File
- Next
- FlexboxLayout