National Institute of Advanced Industrial Science and Technology (AIST) This page is a page of the former research institute. We stopped updating on March 31.2001.
E-mail to webmaster (Japanese) E-mail to webmaster (English)
next up previous contents index
Next: File System Interface Up: Streams and Input/Output Previous: Asynchronous Input/Output

 

Pathnames

Pathnames give the way to analyze and compose file names OS-independently. A typical path name is assumed to be consisted of following components: host:device/directory1/.../directory-n/name.type.version. Since EusLisp only runs on Unix, host, device and version fields are ignored. The pathname function decomposes a string into a list of directory components, name and type, and returns a pathname object, which is printed as a string prefixed by #P.

  pathnamep name [function]

  pathname name [function]   pathname-directory path [function]   pathname-name path [function]
  • returns the file-name portion of path. path can be either of string or pathname.
  pathname-type path [function]
  • extracts the file-type portion out of path. path can be either of string or pathname.
  make-pathname &key host device directory name type version defaults [function]
  • makes a new pathname from directory, name and type. On unix, other parameters are ignored.
  merge-pathnames name &optional (defaults *default-pathname-defaults*)) [function]
  namestring path [function]
  • returns string representation of path.
  parse-namestring name [function]
  truename path [function]
  • tries to find the absolute pathname for the file named path.



Hirofumi Nakagaki
Fri Mar 22 12:46:38 JST 1996