ambrevar/file: Fix `file' on pathname.
parent
81a54a0a7a
commit
65c7b851c4
|
@ -60,7 +60,9 @@ If none, return the empty string unlike `pathname-type'."
|
|||
|
||||
(export-always 'file)
|
||||
(defun file (path)
|
||||
(let ((native-path (uiop:truename* (uiop:parse-native-namestring path))))
|
||||
(let ((native-path (uiop:truename* (if (pathnamep path)
|
||||
path
|
||||
(uiop:parse-native-namestring path)))))
|
||||
(assert (uiop:file-exists-p native-path))
|
||||
(let ((stat (osicat-posix:stat native-path)))
|
||||
;; From Osicat's `file-permissions':
|
||||
|
|
Loading…
Reference in New Issue