StaticappendThe path of the file to append
The content to append
true if the content was appended successfully
StaticcopyStaticcopypath to the file to be copied
path to the destination file
enables additional information
true if the folder was copied successfully
StaticdeleteStaticdeleteEach argument is a file that will be deleted.
StaticdeleteDeletes a folder and its contents.
File object or path to the folder
true if both the contents and the folder could be deleted
StaticdeleteDeletes the contents of a folder.
File object or path to the folder
true if the content of the folder could be deleted
StaticgetStaticgetStaticgetThe files inside the given folder that respects the given pattern.
File object or path to the base folder
Pattern to match
If true, search recursively inside the folder
the files inside the given folder that respects the given pattern.
StaticgetStaticgetStaticgetStaticgetthe system-dependent path-separator (e.g., : or ;).
Staticgetthe path of 'targetFile', relative to 'baseFile' or undefined if the file does not share a common ancestor with baseFile.
Staticgetsystem-dependent name-separator (e.g., / or ).
StaticgetIf folderName is undefined, returns the OS temporary folder. If defined, creates a new folder inside the system's temporary folder and returns it.
OptionalfolderName: stringOptional name for the temporaray folder
the OS temporary folder or the created folder
Staticgetthe current working directory as a File object.
Staticistrue if and only if the file denoted by this abstract pathname exists and is a normal file; false otherwise
Staticistrue if and only if the file denoted by this abstract pathname exists and is a folder; false otherwise
Staticisobject to check
true if the given object is a Java file, false otherwise.
StaticjsonStaticmkdirStaticnewCreates a randomly named folder in the OS temporary folder that is deleted when the virtual machine exits.
the created temporary folder
StaticreadStaticreadStaticreadStaticremoveStaticwriteStaticwrite
Utility methods related with input/output operations on files.