summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSebastian Thiel <sebastian.thiel@icloud.com>2020-03-16 07:29:49 +0800
committerSebastian Thiel <sebastian.thiel@icloud.com>2020-03-16 07:29:49 +0800
commit394e2615d5fb2cbde9ddb076f1e4867a4161e05a (patch)
tree4049e535b70e7cb0ace37d747b299d97b0b33041
parent0d6116eea1e741bc8bc1fc6d04536c8242c5aa42 (diff)
Add marker for future improvement : parallel deletion
-rw-r--r--src/interactive/app/handlers.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/interactive/app/handlers.rs b/src/interactive/app/handlers.rs
index bec1477..a2aad73 100644
--- a/src/interactive/app/handlers.rs
+++ b/src/interactive/app/handlers.rs
@@ -301,6 +301,8 @@ fn io_err_to_usize(err: io::Error) -> usize {
}
}
+// TODO: could use jwalk for this
+// see https://github.com/Byron/dua-cli/issues/43
fn delete_directory_recursively(path: PathBuf) -> Result<(), usize> {
let mut files_or_dirs = vec![path];
let mut dirs = Vec::new();