aboutsummaryrefslogtreecommitdiffstats
path: root/lispref
diff options
context:
space:
mode:
authorDave Love <[email protected]>2000-07-27 13:13:23 +0000
committerDave Love <[email protected]>2000-07-27 13:13:23 +0000
commit1beefde776533eaa061c6a346ab64fe94535de7f (patch)
tree7f60fabd393ccd082cb77a20cee9458b7e3c5139 /lispref
parent19182f77efc822cacc9ebcfc76d1fbd7e00b68af (diff)
file-name-extension
Diffstat (limited to 'lispref')
-rw-r--r--lispref/files.texi8
1 files changed, 8 insertions, 0 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index e27ab8f81d..02c863421f 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -1526,6 +1526,14 @@ value of @code{?/}.
@end defvar
@end ignore
+@defun file-name-extension filename &optional period
+This function returns @var{filename}'s final ``extension,'' if any,
+after applying @code{file-name-sans-versions} to remove any
+version/backup part. If @var{period} is non-nil, then the returned
+value includes the period that delimits the extension, and if
+@var{filename} has no extension, the value is @code{""}.
+@end defun
+
@node Directory Names
@comment node-name, next, previous, up
@subsection Directory Names