Function: f-file-p

f-file-p is a for file-regular-p, defined in fileio.c.

Signature

(f-file-p FILENAME)

Documentation

Return t if FILENAME names a regular file.

This is the sort of file that holds an ordinary stream of data bytes. Return nil if FILENAME does not exist or is not a regular file, or there was trouble determining whether FILENAME is a regular file. Symbolic links to regular files count as regular files. See file-symlink-p to distinguish symlinks.

Other relevant functions are documented in the f group.

Shortdoc

;; f
(f-file-p "path/to/file.txt")
    -> [it depends]
  (f-file-p "path/to/dir")
    -> [it depends]

Aliases

f-file? f-file-p