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