Глава 23
File System Interface

 23.1 File Names
  23.1.1 Pathnames
  23.1.2 Case Conventions
  23.1.3 Structured Directories
  23.1.4 Extended Wildcards
  23.1.5 Logical Pathnames
  23.1.6 Pathname Functions
 23.2 Opening and Closing Files
 23.3 Renaming, Deleting, and Other File Operations
 23.4 Loading Files
 23.5 Accessing Directories

A frequent use of streams is to communicate with a file system to which groups of data (files) can be written and from which files can be retrieved.

Потоки чаще всего используются для работы с файловой системой, в которую могут быть записаны данные (файлы) и из которой после эти файлы могут быть прочитаны.

Common Lisp defines a standard interface for dealing with such a file system. This interface is designed to be simple and general enough to accommodate the facilities provided by “typical” operating system environments within which Common Lisp is likely to be implemented. The goal is to make Common Lisp programs that perform only simple operations on files reasonably portable.

Common Lisp определяет стандартный интерфейс для работы с файловой системой. Данные интерфейс спроектирован простым и достаточно обобщённым для того, чтобы предоставлять функционал «типичной» операционной системы, в которой работает реализация Common Lisp’а. Целью является переносимость Common Lisp’овых программ в случае, если они используют простые операции над файлами.

To this end, Common Lisp assumes that files are named, that given a name one can construct a stream connected to a file of that name, and that the names can be fit into a certain canonical, implementation-independent form called a pathname.

И наконец, Common Lisp предполагает, что файлы имеют имена, которые используются при создании файлового потока. Эти имена абстрагируются в системонезависимую форму - pathname.

Facilities are provided for manipulating pathnames, for creating streams connected to files, and for manipulating the file system through pathnames and streams.

Интерфейс предоставляет функционал для управления именами-файлов, для создания файловых потоков, и для управления файловой системой с помощью имён-файлов и потоков.