2011/11/8 Ingo <[email protected]> > > >>> - is there any object that allows to create a folder (in all OSs)? > >>> I wanted to save files to a non-existing folder, but Pd doesn't > >>> create one. > >> > >> [mkdir $1(--[popen] ? > > > >I wonder if that works on Windows? Anyone tested it? Someone could > >probably make [mkdir] object quite quickly using pdlua or tclpd. > > > >.hc > > I just tested it on WinXP. I could create a directory in the folder of the > patch but not a subdirectory. Not sure if it has anything to do with the > slash vs. backslash issue. > > Ah, true, I didn't think of that. I found a workaround though (see attachment), but it's getting absurdly complicated for just doing mkdir...
> Ingo > > > _______________________________________________ > [email protected] mailing list > UNSUBSCRIBE and account-management -> > http://lists.puredata.info/listinfo/pd-list >
#N canvas 250 52 472 420 10; #X obj 240 237 popen; #X obj 95 93 makefilename %c; #X obj 67 183 l2s; #X obj 67 141 pack s s s; #X msg 102 178 symbol; #X obj 67 212 prepend mkdir; #X obj 67 250 print; #X msg 95 72 92; #X msg 124 120 symbol testdd; #X msg 67 113 symbol testd; #X obj 67 52 t b b b; #X msg 240 64 mkdir testd; #X obj 67 32 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 89 5 1 make directory 'testd' in current; #X obj 67 6 bng 15 250 50 0 empty empty empty 17 7 0 10 -262144 -1 -1; #X text 86 28 2 make subdirectory 'testdd' in 'testd'; #X connect 1 0 3 1; #X connect 2 0 5 0; #X connect 3 0 2 0; #X connect 4 0 2 1; #X connect 5 0 6 0; #X connect 5 0 0 0; #X connect 7 0 1 0; #X connect 8 0 3 2; #X connect 9 0 3 0; #X connect 10 0 9 0; #X connect 10 1 7 0; #X connect 10 2 8 0; #X connect 11 0 0 0; #X connect 12 0 10 0; #X connect 14 0 11 0;
_______________________________________________ [email protected] mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
