aboutsummaryrefslogtreecommitdiff
path: root/readdir/src/readdir-help.pd
blob: 2952f72b13096d1c6c55245cd413fa49a8005128 (plain)
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
#N canvas 44 62 540 544 10;
#X msg 87 194 close;
#X msg 54 75 bang;
#X msg 77 144 tell;
#X obj 38 292 print dir-entry;
#X obj 82 264 print end-of-directory;
#X text 130 4 readdir : simple directory accessor;
#X text 240 523 Bryan Jurish <moocow@ling.uni-potsdam.de>;
#X text 155 36 open DIR : opens the directory DIR;
#X text 184 77 bang : outlet next directory entry;
#X text 184 94 next : ditto;
#X msg 61 94 next;
#X msg 71 125 rewind;
#X text 173 125 rewind : return to beginning of directory;
#X text 187 145 tell : output current position;
#X text 146 163 seek FLOAT : goto position FLOAT;
#X msg 82 163 seek 0;
#X text 181 192 close : close directory;
#X text 258 265 2nd outlet bangs at end of directory;
#X text 260 295 Directory entries go to 1st outlet;
#X text 39 321 Directory entries appear as messages of the form TYPE
NAME \, where NAME is the name of the entry \, and TYPE is one of the
following:;
#X text 147 361 file : regular file;
#X text 154 374 dir : subdirectory;
#X text 147 387 fifo : named pipe;
#X text 147 400 sock : local-domain socket;
#X text 133 413 chrdev : character device;
#X text 133 427 blkdev : block device;
#X obj 38 237 readdir;
#X msg 44 46 open /tmp;
#X text 126 440 unknown : something else (maybe a symlink);
#X msg 38 26 open .;
#X text 39 462 BEWARE: Recognition of directory entry types does NOT
work on windows or any other system whose `dirent' struct is missing
the `d_type' field. On such systems \, the TYPE selector on the first
outlet is always the symbol `unknown'.;
#X connect 0 0 26 0;
#X connect 1 0 26 0;
#X connect 2 0 26 0;
#X connect 10 0 26 0;
#X connect 11 0 26 0;
#X connect 15 0 26 0;
#X connect 26 0 3 0;
#X connect 26 1 4 0;
#X connect 27 0 26 0;
#X connect 29 0 26 0;