expandHome static method
Expands a path that starts with ~ to the home directory.
Implementation
static String expandHome(String pathString) {
if (pathString.startsWith('~')) {
final home = getHomeDirectory();
if (home.isNotEmpty) {
return path.join(home, pathString.substring(1));
}
}
return pathString;
}