<br><br><div class="gmail_quote">On Thu, Feb 14, 2008 at 12:07 PM, Si Mills <<a href="mailto:smills@rootsix.net">smills@rootsix.net</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
HI<br>
<br>
I can't seem to write a file into a folder using [writesf~]<br>
<br>
So when I click the [open -bytes 3 /audio/foo.wav( message,<br>
presumably it should create a folder called "audio" with the file<br>
"foo.wav" in it?</blockquote><div><br class="webkit-block-placeholder"></div><div>Nope, the folder has to be there first. Creating a file that has a non-existent path does NOT create the path.</div><div> </div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
.....But it doesn't do anything.</blockquote><div><br class="webkit-block-placeholder"></div><div>Just as it should. There is no folder in which to write the file. </div><div><br class="webkit-block-placeholder"></div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><br>
<br>
Just doing [open -bytes 3 foo.wav( works fine and creates "foo.wav"<br>
in the same directory as the patch.</blockquote><div><br class="webkit-block-placeholder"></div><div>This is normal, too.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
AM I misunderstanding this, or is it a bug?</blockquote><div><br></div><div>While you can use some of the shell externals for Pd to create folders, Pd itself won't create them.</div><div><br class="webkit-block-placeholder">
</div><div>I am not really sure about writesf~, but you should be getting an error message back, because the file it is trying to work with does not exist, because the full path does not exist.</div><div><br class="webkit-block-placeholder">
</div><div><br class="webkit-block-placeholder"></div><div>Mike</div><div><br class="webkit-block-placeholder"></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
<br>
(on OS x 10.5.1, Pd 0.40.3-extended)<br>
<br>
thanks<br>
S<br>
<br>
_______________________________________________<br>
<a href="mailto:PD-list@iem.at">PD-list@iem.at</a> mailing list<br>
UNSUBSCRIBE and account-management -> <a href="http://lists.puredata.info/listinfo/pd-list" target="_blank">http://lists.puredata.info/listinfo/pd-list</a><br>
</blockquote></div><br><br clear="all"><br>-- <br>Peace may sound simple—one beautiful word— but it requires everything we have, every quality, every strength, every dream, every high ideal.<br>—Yehudi Menuhin (1916–1999), musician