SafePath class
Safe path handling.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- isFile ↔ bool
-
read / write
- parent → String
-
Get the parent path.
If it is a file, the parent folder will be returned.
read-only
- path → String
-
Get the path.
read-only
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
cd(
String name) → void -
Change directory to subfolder
name. It will be created if it does not exist. If it is a file, the parent folder will be returned. Returns the new path. -
cdUp(
) → void - Change directory to parent folder. If it is a file, the parent folder will be returned. Returns the new path.
-
file(
String name) → String -
Get a file path from
nameif it is a folder. If it is a file, the file path will be returned. -
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