Next: Manipulating Files, Previous: File Objects, Up: Files [Contents][Index]
A number of functions exist which when given the name of a file return one of the attributes relating to that file.
Returns true when a file file-name exists.
Returns true when the file file-name is a ‘normal’ file. This means that it isn’t a directory, device, symbolic link or whatever.
Returns true when the file file-name is a directory.
Returns true when the file file-name is a symbolic link.
Returns true when the file file-name is readable.
Returns true when the file file-name is writable.
Returns true when the file file-name is executable.
Returns true when the ownership of the file file-name is the same as that of any files written by the editor.
Returns the gid of the file file-name, as integer.
Returns the uid of the file file-name, as integer.
Returns the number of bytes stored in the file named 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.
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.
Returns a ten-character string describing the attibutes of the file called file-name
(file-modes-as-string ".")
⇒ "drwxr-sr-x"
This function sets the access permissions of the file file-name to
the integer modes (as returned by the file-modes function).
Returns the system time at the last modification to the file file-name, this will be in the usual timestamp format, See Timestamps.
This function returns true if the file file-name1 was modified more recently than the file file-name2 was.
Next: Manipulating Files, Previous: File Objects, Up: Files [Contents][Index]