std-same-files-p | ![]() |
std-same-files-p returns T if the two filenames define the same file, if it exists or not.
If it doesn't exist, the filenames are resolved to full paths and compared with after std-filename-upcase'ing them.
If the file does exist, the file attributes are compared, which is faster than resolving the pathnames.
(std-same-files-p "/acad/test.lsp" "\\acad\\TEST.lsp") => T
(std-current-path) => "C:/ACAD/"
(std-same-files-p "lisp/test.lsp"
"..\\ACAD\\LISP\\TEST.lsp") => T
fname1, fname2: strings. Partial or fully qualified filename specifiers.
T or nil.
None.
(std-require 'STDFILE)
Defined in STDFILE