cdUp method
Change directory to parent folder. If it is a file, the parent folder will be returned. Returns the new path.
Implementation
void cdUp() {
if (isFile) {
// Do nothing
} else {
_path = Directory(_path).parent.path;
}
}
Change directory to parent folder. If it is a file, the parent folder will be returned. Returns the new path.
void cdUp() {
if (isFile) {
// Do nothing
} else {
_path = Directory(_path).parent.path;
}
}