Source file path.
Destination file path.
Copies a file from srcPath to destPath.
复制文件。
File or directory path.
Checks if a file or directory exists.
检查文件或目录是否存在。
File path.
Gets the size of a file.
获取文件大小。
Directory path.
可选
Options for creating the directory. If recursive is true, creates the directory recursively.
Creates a directory.
创建目录。
Reads the contents of a directory.
读取目录的内容。
If encoding is not specified, the file will be read as binary data. If encoding is specified, the file will be read as a string.
Reads a file.
读取文件。
Options for deleting the directory. If recursive is true, deletes the directory recursively.
Deletes a directory.
删除目录。
Deletes a file.
删除文件。
Path to the zip file.
Path to the target directory where the files will be extracted.
Unzips a zip file.
解压缩zip文件。
Data to write.
Encoding type.
Writes a file. If encoding is not specified, the file will be written as binary data. If encoding is specified, the file will be written as a string.
写入文件。如果没有指定编码,则文件将作为二进制数据写入。如果指定了编码,则文件将作为字符串写入。
Source file path.