ambrevar: Fix build.
parent
06c7565d06
commit
0e993eabb3
|
@ -44,8 +44,8 @@ If target is a file, return FILES?.
|
|||
Useful for `walk'."
|
||||
(lambda (directory)
|
||||
(if (uiop:directory-exists-p directory)
|
||||
(let ((recursive-files? (or (uiop:directory-files directory)
|
||||
(uiop:subdirectories directory))))
|
||||
(let ((files-or-dirs? (or (uiop:directory-files directory)
|
||||
(uiop:subdirectories directory))))
|
||||
(or (and empty?
|
||||
(not files-or-dirs?))
|
||||
(and non-empty?
|
||||
|
@ -88,7 +88,7 @@ Without PREDICATES, list all files."
|
|||
"Delete directory and its parents until non-empty.
|
||||
Return the first non-deleted directory."
|
||||
(or (and (ignore-errors (uiop:delete-empty-directory directory))
|
||||
(delete-directory-upward
|
||||
(delete-empty-directory-upward
|
||||
(uiop:pathname-parent-directory-pathname
|
||||
(uiop:ensure-directory-pathname directory))))
|
||||
directory))
|
||||
|
|
Loading…
Reference in New Issue