...
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user