aboutsummaryrefslogtreecommitdiff
path: root/abstractions/dirlist.pd
blob: 45946df737ff414cf533b8d94849da9292ba0f18 (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
#N canvas 133 243 538 370 10;
#X obj 20 61 inlet;
#X obj 20 234 outlet;
#X obj 215 84 loadbang;
#X text 129 200 \$1 is pattern \$2 is dir;
#N canvas 0 22 462 312 pwd 0;
#X text 18 27 This is where used to be.;
#X obj 35 92 inlet;
#X obj 41 184 outlet;
#X obj 48 153 symbol /;
#X connect 1 0 3 0;
#X connect 3 0 2 0;
#X restore 215 123 pd pwd;
#X text 15 284 ONLY sends absolute pathnames \, otherwise hard to add
before load!;
#X msg 54 175 \$1 \$2;
#X obj 20 210 py pt dirlist;
#X obj 20 84 route pattern set-dir bang;
#X obj 54 154 pack s s;
#X obj 125 122 symbol \$2;
#X obj 54 122 symbol \$1;
#X text 20 17 Lists the files in a set with 'set-dir' selector. Sends
the files matching 'pattern' selector as a list. Requires PWD to provide
a reasonable default location.;
#X connect 0 0 8 0;
#X connect 2 0 4 0;
#X connect 4 0 9 1;
#X connect 6 0 7 1;
#X connect 7 0 1 0;
#X connect 8 0 11 0;
#X connect 8 1 10 0;
#X connect 8 2 10 0;
#X connect 8 2 11 0;
#X connect 9 0 6 0;
#X connect 10 0 9 1;
#X connect 11 0 9 0;