FileSystem class
File system operations.
This class can be extended or replaced in tests using Dart's implicit interface feature.
Constructors
- FileSystem()
-
Creates a file system instance.
const
Properties
- currentDirectory → String
-
Gets the current working directory path.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
getType(
String path) → FileSystemEntityType - Gets the type of the entity at the given path.
-
listDirectory(
String path) → List< FileEntry> - Lists the entries in a directory.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
readFile(
String path) → String - Reads the contents of a file.
-
toString(
) → String -
A string representation of this object.
inherited
-
writeFile(
String path, String content) → void - Writes content to a file.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited