...
This commit is contained in:
@@ -39,7 +39,7 @@ pub fn (mut tree Tree) scan(args TreeScannerArgs) ! {
|
||||
git_pull: args.git_pull
|
||||
)!
|
||||
|
||||
console.print_header('doctree.scan: ${path.path}')
|
||||
console.print_item('doctree.scan: ${path.path}')
|
||||
|
||||
if !path.is_dir() {
|
||||
return error('path is not a directory')
|
||||
|
||||
@@ -47,9 +47,10 @@ pub fn rm(todelete_ string) ! {
|
||||
}
|
||||
|
||||
item = item.replace('~', os.home_dir())
|
||||
console.print_debug(' - rm: ${item}')
|
||||
|
||||
if item.starts_with('/') {
|
||||
if os.exists(item) {
|
||||
console.print_debug(' - rm: ${item}')
|
||||
if os.is_dir(item) {
|
||||
if core.sudo_path_ok(item)! {
|
||||
// console.print_debug("rm deletedir: ${item}")
|
||||
|
||||
Reference in New Issue
Block a user