1afile(1) Netatalk afile(1)
2
3
4
6 afile - display type and creator of Apple Macintosh files (netatalk
7 format)
8
10 afile [-a] file ...
11
12
14 afile displays the name and Macintosh type and creator of the file
15 arguments. Tests whether the file is an AppleDouble header, in which
16 case it checks the corresponding data fork exists, or assumes it is a
17 data fork in which case it looks for the corresponding AppleDouble to
18 find the type/creator information.
19
20 afile does not look at any of the extension mapping files such as
21 AppleVolumes.system.
22
24 -a Include directories and data files of unknown type (i.e. with‐
25 out corresponding AppleDouble) in output.
26
28 returns exit status 0 if all files have a corresponding valid .Apple‐
29 Double header or data fork, or 99 for bad command line options. Other‐
30 wise it returns the following error code relating to the last invalid
31 file.
32
33 1 file doesn't exist
34
35 2 file is unreadable
36
37 3 file is directory
38
39 4 file is AppleDouble without data fork
40
41 5 file is AppleDouble with unreadable data fork
42
43 6 file is data fork without AppleDouble
44
45 7 file is data fork with unreadable AppleDouble
46
47 8 file is data fork with short AppleDouble
48
49 9 bad magic in AppleDouble
50
52 achfile(1), afpd(8)
53
54
55
56
572.0.3 26 Feb 1998 afile(1)