ambrevar/file: Document `path' method.

master
Pierre Neidhardt 2021-01-20 11:22:43 +01:00
parent 01b6726f67
commit efd35e8e9f
1 changed files with 2 additions and 0 deletions

View File

@ -48,9 +48,11 @@
(:export-class-name-p t))
(defmethod path ((s string))
"Useful so that `path' can be called both on a `file' or a `string'."
s)
(defmethod path ((p pathname))
"Useful so that `path' can be called both on a `file' or a `pathname'."
(namestring p))
(export-always 'extension)