Fix bug
This commit is contained in:
parent
885fa11bfe
commit
4d2e0e4486
|
@ -163,11 +163,11 @@
|
|||
file)]))
|
||||
|
||||
(define (delete-path path)
|
||||
(if (directory-exists? path)
|
||||
(begin (parameterize ([current-directory path])
|
||||
(cond [(directory-exists? path)
|
||||
(parameterize ([current-directory path])
|
||||
(for-each delete-path (directory-list)))
|
||||
(delete-directory path))
|
||||
(delete-file path)))
|
||||
(delete-directory path)]
|
||||
[(or (file-exists? path) (link-exists? path)) (delete-file path)]))
|
||||
|
||||
(define (directory-size dir)
|
||||
(parameterize ([current-directory dir])
|
||||
|
|
Loading…
Reference in New Issue
Block a user