FileUtils class

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 source, String destination) → void
Copies a file.
createDirectory(String path) → void
Creates a directory recursively.
delete(String path) → void
Deletes a file.
deleteDirectory(String path) → void
Deletes a directory recursively.
exists(String path) bool
Checks if a file or directory exists at the given path.
isDirectory(String path) bool
Checks if the path is a directory.
listFiles(String dirPath, {bool recursive = false}) List<String>
List all files in directory.
readAsString(String path) String
Reads a file's content as a string.
writeString(String path, String content) → void
Writes a string to a file, creating parent folders if necessary.