What are the common methods of Files?

Article Directory


What are the common methods of Files?

Files method Method Description
Files. exists() Check if a file path exists.
Files. createFile() Create a file.
Files. createDirectory() Create folders.
Files. delete() Delete a file or directory.
Files. copy() Copy files.
Files. move() Move files.
Files. size() View the number of files.
Files. read() read the file.
Files. write() write to the file.

Guess you like

Origin blog.csdn.net/m0_48170265/article/details/130075463