Classes
Folder
Folder
Represents a Folder (directory) entity on the file system.
Summary
Constructors
Methods
Constructors
constructor
new Folder(): Folder
inherited from constructor
Returns Folder
Properties
isKnown
Determines whether this instance is a KnownFolder (accessed through the KnownFolders object).
Methods
clear
Deletes all the files and folders (recursively), contained within this Folder.
Returns Promise<any>
clearSync
Deletes all the files and folders (recursively), contained within this Folder synchronously.
Returns void
contains
Checks whether this Folder contains an Entity with the specified name.
The path of the folder is added to the name to resolve the complete path to check for.
Returns boolean
eachEntity
eachEntity(onEntity: (entity: FileSystemEntity) => boolean): any
Enumerates all the top-level FileSystem entities residing within this folder.
Returns any
getEntities
getEntities(): Promise<FileSystemEntity[]>
Gets all the top-level entities residing within this folder.
Returns Promise<FileSystemEntity[]>
getEntitiesSync
getEntitiesSync(onError?: (error: any) => any): FileSystemEntity[]
Gets all the top-level entities residing within this folder synchronously.
Returns FileSystemEntity[]
getFile
getFolder
exists
Static
Checks whether a Folder with the specified path already exists.
Returns boolean
- Previous
- FlexboxLayout
- Next
- Font