GNU Info

Info Node: (librep.info)File Information

(librep.info)File Information


Next: Manipulating Files Prev: File Objects Up: Files
Enter node , (file) or (file)node

File Information
----------------

   A number of functions exist which when given the name of a file
return one of the attributes relating to that file.

 - Function: file-exists-p file-name
     Returns true when a file FILE-NAME exists.

 - Function: file-regular-p file-name
     Returns true 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 true when the file FILE-NAME is a directory.

 - Function: file-symlink-p file-name
     Returns true when the file FILE-NAME is a symbolic link.

 - Function: file-readable-p file-name
     Returns true when the file FILE-NAME is readable.

 - Function: file-writable-p file-name
     Returns true when the file FILE-NAME is writable.

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

 - Function: file-size file-name
     Returns the number of bytes stored in the file named FILE-NAME.

 - 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.

 - 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: file-modes-as-string file-name
     Returns a ten-character string describing the attibutes of the file
     called FILE-NAME

          (file-modes-as-string ".")
              => "drwxr-sr-x"

 - 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 in the usual timestamp format, Note:
     Timestamps.

 - Function: file-newer-than-file-p file-name1 file-name2
     This function returns true if the file FILE-NAME1 was modified
     more recently than the file FILE-NAME2 was.


automatically generated by info2www version 1.2.2.9