std-same-files-p


Synopsis

(std-same-files-p <fname1> <fname2>)

Description

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.

Example

(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

Arguments

fname1, fname2: strings. Partial or fully qualified filename specifiers.

Return Value

T or nil.

Side Effects

None.

Module

(std-require 'STDFILE)

Defined in STDFILE