|
From: | Colin Woodbury |
Subject: | Re: [PATCH] lisp/files.el: Add `file-name-set-extension` |
Date: | Thu, 10 Jun 2021 07:40:00 -0700 |
User-agent: | Cyrus-JMAP/3.5.0-alpha0-519-g27a961944e-fm-20210531.001-g27a96194 |
"Colin Woodbury" <colin@fosskers.ca> writes:> Hi all,Hi Colin,> + ((equal ?/ (string-to-char (substring file -1))) (error "Filename is a directory: %s" filename))This shall be (directory-name-p file) . You cannot assume that ?/ isalways the directory separator, for example on MS Windows.Best regards, Michael.
file-name-with-extension.patch
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |