This commit is contained in:
2025-02-26 18:07:24 -07:00
parent 293dc3f1ac
commit d21e71e615
4 changed files with 10 additions and 5 deletions

View File

@@ -50,6 +50,9 @@ pub fn get_dir(args_ GetArgs) !Path {
mut p2 := get_no_check(args.path)
if args.check {
p2.check()
if args.delete {
p2.delete()!
}
p2.absolute()
if p2.exist == .no {
if args.create {
@@ -64,9 +67,7 @@ pub fn get_dir(args_ GetArgs) !Path {
if args.empty {
p2.empty()!
}
if args.delete {
p2.delete()!
}
}
return p2
}