PathUtils class

Utilities for cross-platform path handling.

Constructors

PathUtils()

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

expandHome(String pathString) String
Expands a path that starts with ~ to the home directory.
getHomeDirectory() String
Gets the home directory path.
isDirectory(String pathString) bool
Checks if a path exists and is a directory.
isFile(String pathString) bool
Checks if a path exists and is a file.
isWithin(String childPath, String parentPath) bool
Checks if a path is within a parent directory.
normalize(String pathString) String
Normalizes a path for comparison.
resolveAbsolute(String pathString) String?
Resolves a path to its absolute, canonical form. Returns null if the path doesn't exist or can't be resolved.