File System Interface



probe-file path [function]

checks if a file named path exists.


file-size path [function]
returns the size of the file named path in bytes.


directory-p path [function]
returns T if path is a directory, NIL otherwise even path does not exist.


find-executable file [function]
returns the full pathname for the Unix command named file. Find-executable provides almost the same functionality with Unix's 'which' command that searches the executable file in your path list.


file-write-date file [function]

returns the integer representation of the time when the file was last modified. String representation can be obtained by (unix:asctime (unix:localtime (file-write-date file)))


file-newer new old [function]



returns T if the new file is modified more recently than the old file.

object-file-p file [function]

returns T if the file is an object file by looking at the file's magic number in the header.


directory &optional (path ".") [function]

makes a list of all the files in the path.


dir &optional (dir ".") [function]

prints file names in the specified directory.


k-okada 2013-05-21