FFile class

Platform.pathSeparator表示路径分隔符,对于Android和iOS来说表示‘/’ recursive:false代表操作当前目录。true表示包含所有子目录

Constructors

FFile()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Methods

copy(String filePath, String toFilePath) Future<File?>
createFile(String filePath) Future<File?>
isExistFile(String filePath) Future<bool>
isFile(String filePath) bool
readAsString(String filePath) Future<String>
removeFile(String filePath) Future<bool>
writeContentByFile({required File file, required String content, bool? autoCreate = false, FileMode mode = FileMode.append}) Future<bool>
writeContentByPath({required String filePath, required String content, bool? autoCreate = false, FileMode mode = FileMode.append}) Future<bool>