Constructors
constructor
- new File(uri: any): File
- new File(pathname: string): File
- new File(parent: string, child: string): File
- new File(parent: File, child: string): File
-
Parameters
-
Parameters
-
Parameters
-
parent: string
-
child: string
-
Parameters
Accessors
Static pathSeparator
- get pathSeparator(): string
Static pathSeparatorChar
- get pathSeparatorChar(): string
Static separatorChar
- get separatorChar(): string
Methods
compareTo
- compareTo(pathname: File): number
- compareTo(arg0: any): number
-
Parameters
Returns number
-
Parameters
Returns number
getAbsolutePath
- getAbsolutePath(): string
getCanonicalPath
- getCanonicalPath(): string
list
-
Returns Array<string>
-
Parameters
Returns Array<string>
listFiles
-
Returns Array<File>
-
Parameters
Returns Array<File>
-
Parameters
Returns Array<File>
renameTo
- renameTo(dest: File): boolean
-
Parameters
Returns boolean
setExecutable
- setExecutable(executable: boolean): boolean
- setExecutable(executable: boolean, ownerOnly: boolean): boolean
-
Parameters
Returns boolean
-
Parameters
-
executable: boolean
-
ownerOnly: boolean
Returns boolean
setLastModified
- setLastModified(time: number): boolean
-
Parameters
Returns boolean
setReadable
- setReadable(readable: boolean): boolean
- setReadable(readable: boolean, ownerOnly: boolean): boolean
-
Parameters
Returns boolean
-
Parameters
-
readable: boolean
-
ownerOnly: boolean
Returns boolean
setWritable
- setWritable(writable: boolean): boolean
- setWritable(writable: boolean, ownerOnly: boolean): boolean
-
Parameters
Returns boolean
-
Parameters
-
writable: boolean
-
ownerOnly: boolean
Returns boolean
Static createTempFile
- createTempFile(prefix: string, suffix: string): File
- createTempFile(prefix: string, suffix: string, directory: File): File
-
Parameters
-
prefix: string
-
suffix: string
-
Parameters
-
prefix: string
-
suffix: string
-
directory: File