Function: f-exists-p

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

Signature

(f-exists-p FILENAME)

Documentation

Return t if file FILENAME exists (whether or not you can read it).

Return nil if FILENAME does not exist, or if there was trouble determining whether the file exists. See also file-readable-p and file-attributes. This returns nil for a symlink to a nonexistent file. Use file-symlink-p to test for such links.

Other relevant functions are documented in the f group.

Shortdoc

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

Aliases

f-exists-p f-exists?