]> arthur.barton.de Git - netatalk.git/blob - man/man1/afile.1
3e120cb01ddd01206fceac909eee8deee8ca1ef0
[netatalk.git] / man / man1 / afile.1
1 .TH afile 1 "26 Feb 1998" 2.0.0 Netatalk 
2 .SH NAME
3 afile \- display type and creator of Apple Macintosh files (netatalk format)
4 .SH SYNOPSIS
5 \fBafile\fR [\-a] \fBfile\fR \&...
6 .sp 1
7 .SH DESCRIPTION
8 afile displays the name and Macintosh type and
9 creator of the \fIfile\fR arguments. Tests
10 whether the file is an AppleDouble header, in which case it checks the
11 corresponding data fork exists, or assumes it is a data fork in which case
12 it looks for the corresponding AppleDouble to find the type/creator
13 information.
14 .PP
15 afile does not look at any of the extension
16 mapping files such as AppleVolumes.system.
17 .SH OPTIONS
18 .TP 
19 \fB\-a\fR
20 Include directories and data files of unknown type (i.e.
21 without corresponding AppleDouble) in output.
22 .SH DIAGNOSTICS
23 returns exit status 0 if all files have a corresponding valid
24 \&.AppleDouble header or data fork, or 99 for bad command line options.
25 Otherwise it returns the following error code relating to the last invalid
26 file.
27 .PP
28 1 file doesn't exist
29 .PP
30 2 file is unreadable
31 .PP
32 3 file is directory
33 .PP
34 4 file is AppleDouble without data fork
35 .PP
36 5 file is AppleDouble with unreadable data fork
37 .PP
38 6 file is data fork without AppleDouble
39 .PP
40 7 file is data fork with unreadable AppleDouble
41 .PP
42 8 file is data fork with short AppleDouble
43 .PP
44 9 bad magic in AppleDouble
45 .SH "SEE ALSO"
46 \fBachfile\fR(1),
47 \fBafpd\fR(8)
48