Go to the first, previous, next, last section, table of contents.


File Information

A number of functions exist which when given the name of a file return some information about that file.

Function: file-exists-p file-name
Returns t when a file file-name exists.

Function: file-regular-p file-name
Returns t when the file file-name is a `normal' file. This means that it isn't a directory, device, symbolic link or whatever.

Function: file-directory-p file-name
Returns t when the file file-name is a directory.

Function: file-symlink-p file-name
Returns t when the file file-name is a symbolic link.

Function: file-readable-p file-name
Returns t when the file file-name is readable.

Function: file-writable-p file-name
Returns t when the file file-name is writable.

Function: file-owner-p file-name
Returns t when the ownership of the file file-name is the same as that of any files written by the editor.

Note that currently this always returns t in the Amiga version.

Function: file-nlinks file-name
Returns the number of hard links pointing to the file file-name. If file-name has only one name the number will be one.

Note that this always returns one in the Amiga version of Jade.

Function: file-modes file-name
This function returns the access permissions of the file file-name. This will be an integer whose format is undefined; it differs from operating system to operating system.

Function: set-file-modes file-name modes
This function sets the access permissions of the file file-name to the integer modes (as returned by the file-modes function).

Function: file-modtime file-name
Returns the system time at the last modification to the file file-name, this will be an integer. See section System Time.

Function: file-newer-than-file-p file-name1 file-name2
This function returns t if the file file-name1 was modified more recently than the file file-name2 was.

(file-newer-than-file-p file1 file2)
==
(> (file-modtime file1) (file-modtime file2))


Go to the first, previous, next, last section, table of contents.