DirectoryHelper 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
-
change(String newPath)
→ Future<void>
-
Change the current working directory to a new path.
-
copy(String directoryPath, String destinationPath)
→ Future<void>
-
Copies a directory to a new path
-
create(String path)
→ Future<Directory>
-
Creates a directory at the specified path (The directory's name is the last is that path).
-
delete(String path, {bool recursive = false})
→ Future<void>
-
-
exists(String path)
→ Future<bool>
-
Checks if the directory exists.
-
find(String rootPath, String name, {bool isExactMatch = false, bool ignoreHidden = true})
→ Future<List<String>>
-
Search for a directory by it's name.
-
findAdvanced(String rootPath, RegExp pattern, {bool isExactMatch = false, bool ignoreHidden = true})
→ Future<List<String>>
-
Search for a directory with a RegExp pattern.
-
getCurrent()
→ String
-
Get the current working directory.
-
listAll(String rootPath, {bool includeHidden = false, List<RegExp>? excluded, List<RegExp>? allowed})
→ Future<List<Directory>>
-
List all the directories in this root directory.
-
move(String oldPath, String newPath)
→ Future<void>
-
Moves a directory to a new path
-
noSuchMethod(Invocation invocation)
→ dynamic
-
Invoked when a nonexistent method or property is accessed.
inherited
-
rename(String path, String newName)
→ Future<void>
-
Rename the directory
-
toString()
→ String
-
A string representation of this object.
inherited