User Tools


Function PATHNAMEP

Syntax

  • pathnamep objectgeneralized-boolean

Arguments and Values

Description

Returns true if object is of type pathname; otherwise, returns false.

Examples

(defvar *q*)

*Q*

(setf *q* "test") → "test" (pathnamep *q*) → false (setf *q* (pathname "test"))

#S(PATHNAME :HOST NIL :DEVICE NIL :DIRECTORY NIL :NAME "test" :TYPE NIL :VERSION NIL)

(pathnamep *q*) → true (setf *q* (logical-pathname "SYS:SITE;FOO.SYSTEM")) → #P"SYS:SITE;FOO.SYSTEM" (pathnamep *q*) → true

Side Effects

None.

Affected By

None.

Exceptional Situations

None.

See Also

None.

Notes

(pathnamep object) ≡ (typep object 'pathname)