-
Notifications
You must be signed in to change notification settings - Fork 0
/
chap-20.texi
742 lines (518 loc) · 22.4 KB
/
chap-20.texi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
@node Files
@chapter Files
@menu
* File System Concepts::
* Files Dictionary::
@end menu
@node File System Concepts
@section File System Concepts
This section describes the @clisp{}@spc{}interface to file systems.
The model used by this interface assumes
that
@cindex file
@dfn{files} are named by
@cindex filename
@dfn{filenames},
that a @term{filename} can be represented by a @term{pathname} @term{object},
and that given a @term{pathname} a @newterm{stream} can be constructed
that connects to a @term{file} whose @term{filename} it represents.
For information about opening and closing @term{files},
and manipulating their contents, see @ref{Streams, Chapter 21 (Streams)}.
@Thenextfigure{}@spc{}lists some @term{operators}
that are applicable to @term{files} and directories.
@float Figure,fig20.1
@cartouche
@multitable{compile-file}{file-write-date}{with-open-file}
@item compile-file @tab file-length @tab open
@item delete-file @tab file-position @tab probe-file
@item directory @tab file-write-date @tab rename-file
@item file-author @tab load @tab with-open-file
@end multitable
@end cartouche
@caption{File and Directory Operations}
@end float
@menu
* Coercion of Streams to Pathnames::
* File Operations on Open and Closed Streams::
* Truenames::
@end menu
@node Coercion of Streams to Pathnames
@subsection Coercion of Streams to Pathnames
A @newterm{stream associated with a file} is either a @term{file stream}
or a @term{synonym stream} whose target is a @newterm{stream associated with a file}.
Such streams can be used as @term{pathname designators}.
Normally, when a @term{stream associated with a file} is used as a
@term{pathname designator}, it denotes the @term{pathname} used to
open the @term{file}; this may be, but is not required to be, the
actual name of the @term{file}.
Some functions, such as @symbolref{truename, SYM} and @symbolref{delete-file, SYM},
coerce @term{sequences} to @term{pathnames} in a different way that
involves referring to the actual @term{file} that is open, which might
or might not be the file whose name was opened originally. Such special
situations are always notated specifically and are not the default.
@node File Operations on Open and Closed Streams
@subsection File Operations on Open and Closed Streams
Many @term{functions} that perform @term{file} operations accept either
@term{open} or @term{closed} @term{streams} as @term{arguments};
see @ref{Stream Arguments to Standardized Functions}.
Of these, the @term{functions} in @thenextfigure{}@spc{}treat @term{open} and
@term{closed} @term{streams} differently.
@float Figure,fig20.2
@cartouche
@multitable{delete-file}{file-write-date}{probe-file}
@item delete-file @tab file-author @tab probe-file
@item directory @tab file-write-date @tab truename
@end multitable
@end cartouche
@caption{File Functions that Treat Open and Closed Streams Differently}
@end float
Since treatment of @term{open} @term{streams} by the @term{file system}
may vary considerably between @term{implementations}, however,
a @term{closed} @term{stream} might be the most reliable kind of
@term{argument} for some of these functions---in particular, those in
@thenextfigure{}. For example, in some @term{file systems},
@term{open} @term{files} are written under temporary names
and not renamed until @term{closed}
and/or are held invisible until @term{closed}.
In general, any code that is intended to be portable should
use such @term{functions} carefully.
@float Figure,fig20.3
@cartouche
@multitable{directory}{probe-file}{truename}
@item directory @tab probe-file @tab truename
@end multitable
@end cartouche
@caption{File Functions where Closed Streams Might Work Best}
@end float
@node Truenames
@subsection Truenames
Many @term{file systems} permit more than one @term{filename} to designate
a particular @term{file}.
Even where multiple names are possible, most @term{file systems} have a convention
for generating a canonical @term{filename} in such situations. Such a canonical
@term{filename} (or the @term{pathname} representing such a @term{filename}) is
called a @newterm{truename}.
The @term{truename} of a @term{file} may differ from other @term{filenames}
for the file because of
symbolic links,
version numbers,
logical device translations in the @term{file system},
@term{logical pathname} translations within @clisp{},
or other artifacts of the @term{file system}.
The @term{truename} for a @term{file} is often, but not necessarily, unique for
each @term{file}. For instance, a Unix @term{file} with multiple hard links
could have several @term{truenames}.
@node Examples of Truenames
@subsubsection Examples of Truenames
For example, a DEC TOPS-20 system with @term{files} @f{PS:<JOE>FOO.TXT.1}
and @f{PS:<JOE>FOO.TXT.2} might permit the second @term{file} to be referred
to as @f{PS:<JOE>FOO.TXT.0}, since the ``@f{.0}'' notation denotes ``newest''
version of several @term{files}.
In the same @term{file system}, a ``logical device'' ``@f{JOE:}'' might be
taken to refer to @f{PS:<JOE>}'' and so the names @f{JOE:FOO.TXT.2} or
@f{JOE:FOO.TXT.0} might refer to @f{PS:<JOE>FOO.TXT.2}.
In all of these cases, the @term{truename} of the file would probably be
@f{PS:<JOE>FOO.TXT.2}.
If a @term{file} is a symbolic link to another @term{file} (in a @term{file system}
permitting such a thing), it is conventional for the @term{truename} to be
the canonical name of the @term{file} after any symbolic links have been followed;
that is, it is the canonical name of the @term{file} whose contents would
become available if an @term{input} @term{stream} to that @term{file} were
opened.
In the case of a @term{file} still being created (that is, of an @term{output}
@term{stream} open to such a @term{file}), the exact @term{truename} of the file
might not be known until the @term{stream} is closed. In this case,
@thefunction{truename} might return different values for such a @term{stream}
before and after it was closed. In fact, before it is closed, the name returned
might not even be a valid name in the @term{file system}---for example, while a
file is being written, it might have version @kwdref{newest} and might only take on
a specific numeric value later when the file is closed even in a @term{file system}
where all files have numeric versions.
@node Files Dictionary
@section Files Dictionary
@menu
* directory::
* probe-file::
* ensure-directories-exist::
* truename::
* file-author::
* file-write-date::
* rename-file::
* delete-file::
* file-error::
* file-error-pathname::
@end menu
@node directory
@syindexanchor{directory, SYM}
@subsection directory (Function)
@cindex directory
@subsubheading Syntax:
@DefunWithValues{directory, pathspec @keyparam{}, pathnames}
@subsubheading Arguments and Values:
@param{pathspec}---a @term{pathname designator},
which may contain @term{wild} components.
@param{pathnames}---a @term{list} of
@term{physical pathnames}.
@subsubheading Description:
Determines which, if any, @term{files} that are present
in the file system have names matching @param{pathspec},
and returns a
@term{fresh}
@term{list} of @term{pathnames} corresponding to the @term{truenames} of
those @term{files}.
An @term{implementation} may be extended to accept
@term{implementation-defined} keyword arguments to @symbolref{directory, SYM}.
@subsubheading Affected By:
The host computer's file system.
@subsubheading Exceptional Situations:
If the attempt to obtain a directory listing is not successful,
an error @oftype{file-error} is signaled.
@subsubheading See Also:
@ref{pathname (System Class)},
@ref{logical-pathname (System Class)},
@ref{ensure-directories-exist},
@ref{File System Concepts},
@ref{Open and Closed Streams},
@ref{Pathnames as Filenames}
@subsubheading Notes:
If the @param{pathspec} is not @term{wild},
the resulting list will contain either zero or one elements.
@clisp{}@spc{}specifies ``@keyparam{}'' in the argument list to @symbolref{directory, SYM}
even though no @term{standardized} keyword arguments to @symbolref{directory, SYM} are defined.
``@f{:allow-other-keys t}''
may be used in @term{conforming programs} in order to quietly ignore any
additional keywords which are passed by the program but not supported
by the @term{implementation}.
@node probe-file
@syindexanchor{probe-file, SYM}
@subsection probe-file (Function)
@cindex probe-file
@subsubheading Syntax:
@DefunWithValues{probe-file, pathspec, truename}
@subsubheading Arguments and Values:
@param{pathspec}---a @term{pathname designator}.
@param{truename}---a @term{physical pathname} or @nil{}.
@subsubheading Description:
@symbolref{probe-file, SYM} tests whether a file exists.
@symbolref{probe-file, SYM} returns @term{false} if there is no file named @param{pathspec},
and otherwise returns the @term{truename} of @param{pathspec}.
If the @param{pathspec} @term{designator} is an open @term{stream},
then @symbolref{probe-file, SYM} produces the @term{truename} of its associated @term{file}.
If @param{pathspec} is a @term{stream}, whether open or closed,
it is coerced to a @term{pathname} as if by @thefunction{pathname}.
@subsubheading Affected By:
The host computer's file system.
@subsubheading Exceptional Situations:
An error @oftype{file-error} is signaled if @param{pathspec} is @term{wild}.
An error @oftype{file-error} is signaled
if the @term{file system} cannot perform the requested operation.
@subsubheading See Also:
@ref{truename},
@ref{open},
@ref{ensure-directories-exist},
@ref{pathname (System Class)},
@ref{logical-pathname (System Class)},
@ref{File System Concepts},
@ref{Open and Closed Streams},
@ref{Pathnames as Filenames}
@node ensure-directories-exist
@syindexanchor{ensure-directories-exist, SYM}
@subsection ensure-directories-exist (Function)
@cindex ensure-directories-exist
@subsubheading Syntax:
@DefunWithValues{ensure-directories-exist, pathspec @keyparam{} verbose, pathspec\, created}
@subsubheading Arguments and Values:
@param{pathspec}---a @term{pathname designator}.
@param{verbose}---a @term{generalized boolean}.
@param{created}---a @term{generalized boolean}.
@subsubheading Description:
Tests whether the directories containing the specified @term{file} actually exist,
and attempts to create them if they do not.
If the containing directories do not exist and if @param{verbose} is @term{true},
then the @term{implementation} is permitted (but not required)
to perform output to @term{standard output} saying what directories were created.
If the containing directories exist, or if @param{verbose} is @term{false},
this function performs no output.
The @term{primary value} is the given @i{pathspec} so that this operation can
be straightforwardly composed with other file manipulation expressions.
The @term{secondary value}, @param{created}, is @term{true} if any directories were
created.
@subsubheading Affected By:
The host computer's file system.
@subsubheading Exceptional Situations:
An error @oftype{file-error} is signaled if the host, device, or directory
part of @param{pathspec} is @term{wild}.
If the directory creation attempt is not successful,
an error @oftype{file-error} is signaled;
if this occurs,
it might be the case that none, some, or all
of the requested creations have actually occurred
within the @term{file system}.
@subsubheading See Also:
@ref{probe-file},
@ref{open},
@ref{Pathnames as Filenames}
@node truename
@syindexanchor{truename, SYM}
@subsection truename (Function)
@cindex truename
@subsubheading Syntax:
@DefunWithValues{truename, filespec, truename}
@subsubheading Arguments and Values:
@param{filespec}---a @term{pathname designator}.
@param{truename}---a @term{physical pathname}.
@subsubheading Description:
@symbolref{truename, SYM} tries to find the @term{file} indicated by
@param{filespec} and returns its @term{truename}.
If the @param{filespec} @term{designator} is an open @term{stream},
its associated @term{file} is used.
If @param{filespec} is a @term{stream},
@symbolref{truename, SYM} can be used whether the @term{stream}
is open or closed. It is permissible for @symbolref{truename, SYM}
to return more specific information after the @term{stream}
is closed than when the @term{stream} was open.
If @param{filespec} is a @term{pathname}
it represents the name used to open the file. This may be, but is
not required to be, the actual name of the file.
@subsubheading Examples:
@lisp
;; An example involving version numbers. Note that the precise nature of
;; the truename is implementation-dependent while the file is still open.
(with-open-file (stream ">vistor>test.text.newest")
(values (pathname stream)
(truename stream)))
@EV{} #P"S:>vistor>test.text.newest", #P"S:>vistor>test.text.1"
@OV{} #P"S:>vistor>test.text.newest", #P"S:>vistor>test.text.newest"
@OV{} #P"S:>vistor>test.text.newest", #P"S:>vistor>_temp_._temp_.1"
;; In this case, the file is closed when the truename is tried, so the
;; truename information is reliable.
(with-open-file (stream ">vistor>test.text.newest")
(close stream)
(values (pathname stream)
(truename stream)))
@EV{} #P"S:>vistor>test.text.newest", #P"S:>vistor>test.text.1"
;; An example involving TOP-20's implementation-dependent concept
;; of logical devices -- in this case, "DOC:" is shorthand for
;; "PS:<DOCUMENTATION>" ...
(with-open-file (stream "CMUC::DOC:DUMPER.HLP")
(values (pathname stream)
(truename stream)))
@EV{} #P"CMUC::DOC:DUMPER.HLP", #P"CMUC::PS:<DOCUMENTATION>DUMPER.HLP.13"
@end lisp
@subsubheading Exceptional Situations:
An error @oftype{file-error} is signaled if an appropriate @term{file}
cannot be located within the @term{file system} for the given @param{filespec},
or if the @term{file system} cannot perform the requested operation.
An error @oftype{file-error} is signaled if @param{pathname} is @term{wild}.
@subsubheading See Also:
@ref{pathname (System Class)},
@ref{logical-pathname (System Class)},
@ref{File System Concepts},
@ref{Pathnames as Filenames}
@subsubheading Notes:
@symbolref{truename, SYM} may be used to account for any @term{filename} translations
performed by the @term{file system}.
@node file-author
@syindexanchor{file-author, SYM}
@subsection file-author (Function)
@cindex file-author
@subsubheading Syntax:
@DefunWithValues{file-author, pathspec, author}
@subsubheading Arguments and Values:
@param{pathspec}---a @term{pathname designator}.
@param{author}---a @term{string} or @nil{}.
@subsubheading Description:
Returns a @term{string} naming the author of the @term{file} specified by @param{pathspec},
or @nil{}@spc{}if the author's name cannot be determined.
@subsubheading Examples:
@lisp
(with-open-file (stream ">relativity>general.text")
(file-author s))
@EV{} "albert"
@end lisp
@subsubheading Affected By:
The host computer's file system.
Other users of the @term{file} named by @param{pathspec}.
@subsubheading Exceptional Situations:
An error @oftype{file-error} is signaled if @param{pathspec} is @term{wild}.
An error @oftype{file-error} is signaled
if the @term{file system} cannot perform the requested operation.
@subsubheading See Also:
@ref{pathname (System Class)},
@ref{logical-pathname (System Class)},
@ref{File System Concepts},
@ref{Pathnames as Filenames}
@node file-write-date
@syindexanchor{file-write-date, SYM}
@subsection file-write-date (Function)
@cindex file-write-date
@subsubheading Syntax:
@DefunWithValues{file-write-date, pathspec, date}
@subsubheading Arguments and Values:
@param{pathspec}---a @term{pathname designator}.
@param{date}---a @term{universal time} or @nil{}.
@subsubheading Description:
Returns a @term{universal time} representing the time at which the @term{file}
specified by @param{pathspec} was last written (or created),
or returns @nil{}@spc{}if such a time cannot be determined.
@subsubheading Examples:
@lisp
(with-open-file (s "noel.text"
:direction :output :if-exists :error)
(format s "~&Dear Santa,~2%I was good this year. ~
Please leave lots of toys.~2%Love, Sue~
~2%attachments: milk, cookies~%")
(truename s))
@EV{} #P"CUPID:/susan/noel.text"
(with-open-file (s "noel.text")
(file-write-date s))
@EV{} 2902600800
@end lisp
@subsubheading Affected By:
The host computer's file system.
@subsubheading Exceptional Situations:
An error @oftype{file-error} is signaled if @param{pathspec} is @term{wild}.
An error @oftype{file-error} is signaled
if the @term{file system} cannot perform the requested operation.
@subsubheading See Also:
@ref{Universal Time},
@ref{Pathnames as Filenames}
@node rename-file
@syindexanchor{rename-file, SYM}
@subsection rename-file (Function)
@cindex rename-file
@subsubheading Syntax:
@DefunWithValues{rename-file, filespec new-name, defaulted-new-name\, old-truename\, new-truename}
@subsubheading Arguments and Values:
@param{filespec}---a @term{pathname designator}.
@param{new-name}---a @term{pathname designator}
other than a @term{stream}.
@param{defaulted-new-name}---a @term{pathname}
@param{old-truename}---a @term{physical pathname}.
@param{new-truename}---a @term{physical pathname}.
@subsubheading Description:
@symbolref{rename-file, SYM} modifies the file system in such a way
that the file indicated by @param{filespec} is renamed to
@param{defaulted-new-name}.
It is an error to specify a filename containing a @term{wild} component,
for @param{filespec} to contain a @nil{}@spc{}component where the file system does
not permit a @nil{}@spc{}component, or for the result of defaulting missing
components of @param{new-name} from @param{filespec} to contain a @nil{}@spc{}component
where the file system does not permit a @nil{}@spc{}component.
If @param{new-name} is a @term{logical pathname},
@symbolref{rename-file, SYM} returns a @term{logical pathname} as its @term{primary value}.
@symbolref{rename-file, SYM}
returns three values if successful. The @term{primary value}, @param{defaulted-new-name},
is the resulting name which is composed of
@param{new-name} with any missing components filled in by performing
a @symbolref{merge-pathnames, SYM} operation using @param{filespec} as the defaults.
The @term{secondary value}, @param{old-truename},
is the @term{truename} of the @term{file} before it was renamed.
The @term{tertiary value}, @param{new-truename},
is the @term{truename} of the @term{file} after it was renamed.
If the @param{filespec} @term{designator} is an open @term{stream},
then the @term{stream} itself and the file associated with it are
affected (if the @term{file system} permits).
@subsubheading Examples:
@lisp
;; An example involving logical pathnames.
(with-open-file (stream "sys:chemistry;lead.text"
:direction :output :if-exists :error)
(princ "eureka" stream)
(values (pathname stream) (truename stream)))
@EV{} #P"SYS:CHEMISTRY;LEAD.TEXT.NEWEST", #P"Q:>sys>chem>lead.text.1"
(rename-file "sys:chemistry;lead.text" "gold.text")
@EV{} #P"SYS:CHEMISTRY;GOLD.TEXT.NEWEST",
#P"Q:>sys>chem>lead.text.1",
#P"Q:>sys>chem>gold.text.1"
@end lisp
@subsubheading Exceptional Situations:
If the renaming operation is not successful, an error @oftype{file-error} is signaled.
An error @oftype{file-error} might be signaled if @param{filespec} is @term{wild}.
@subsubheading See Also:
@ref{truename},
@ref{pathname (System Class)},
@ref{logical-pathname (System Class)},
@ref{File System Concepts},
@ref{Pathnames as Filenames}
@node delete-file
@syindexanchor{delete-file, SYM}
@subsection delete-file (Function)
@cindex delete-file
@subsubheading Syntax:
@DefunWithValues{delete-file, filespec, @symbolref{t, SC}}
@subsubheading Arguments and Values:
@param{filespec}---a @term{pathname designator}.
@subsubheading Description:
Deletes the @term{file} specified by @param{filespec}.
If the @param{filespec} @term{designator} is an open @term{stream},
then @param{filespec} and the file associated with it are affected
(if the file system permits),
in which case @param{filespec} might be closed immediately,
and the deletion might be immediate or delayed until @param{filespec} is explicitly closed,
depending on the requirements of the file system.
It is @term{implementation-dependent} whether an attempt
to delete a nonexistent file is considered to be successful.
@symbolref{delete-file, SYM} returns @term{true} if it succeeds,
or signals an error @oftype{file-error} if it does not.
The consequences are undefined
if @param{filespec} has a @term{wild} component,
or if @param{filespec} has a @nil{}@spc{}component
and the file system does not permit a @nil{}@spc{}component.
@subsubheading Examples:
@lisp
(with-open-file (s "delete-me.text" :direction :output :if-exists :error))
@EV{} NIL
(setq p (probe-file "delete-me.text")) @EV{} #P"R:>fred>delete-me.text.1"
(delete-file p) @EV{} T
(probe-file "delete-me.text") @EV{} @term{false}
(with-open-file (s "delete-me.text" :direction :output :if-exists :error)
(delete-file s))
@EV{} T
(probe-file "delete-me.text") @EV{} @term{false}
@end lisp
@subsubheading Exceptional Situations:
If the deletion operation is not successful, an error @oftype{file-error} is signaled.
An error @oftype{file-error} might be signaled if @param{filespec} is @term{wild}.
@subsubheading See Also:
@ref{pathname (System Class)},
@ref{logical-pathname (System Class)},
@ref{File System Concepts},
@ref{Pathnames as Filenames}
@node file-error
@syindexanchor{file-error, SYM}
@subsection file-error (Condition Type)
@cindex file-error
@subsubheading Class Precedence List:
@symbolref{file-error, SYM},
@symbolref{error, CT},
@symbolref{serious-condition, SYM},
@symbolref{condition, SYM},
@symbolref{t, SC}
@subsubheading Description:
@Thetype{file-error} consists of error conditions that occur during
an attempt to open or close a file, or during some low-level transactions
with a file system. The ``offending pathname'' is initialized by
@theinitkeyarg{pathname} to @symbolref{make-condition, SYM}, and is @term{accessed}
by @thefunction{file-error-pathname}.
@subsubheading See Also:
@ref{file-error-pathname},
@ref{open},
@ref{probe-file},
@ref{directory},
@ref{ensure-directories-exist}
@node file-error-pathname
@syindexanchor{file-error-pathname, SYM}
@subsection file-error-pathname (Function)
@cindex file-error-pathname
@subsubheading Syntax:
@DefunWithValues{file-error-pathname, condition, pathspec}
@subsubheading Arguments and Values:
@param{condition}---a @term{condition} @oftype{file-error}.
@param{pathspec}---a @term{pathname designator}.
@subsubheading Description:
Returns the ``offending pathname'' of a @term{condition} @oftype{file-error}.
@subsubheading Exceptional Situations:
@subsubheading See Also:
@ref{file-error},
@ref{Conditions, Chapter 9 (Conditions)}