<div dir="ltr"><div dir="ltr">Em qui., 24 de mar. de 2022 às 06:48, Antoine Rousseau <<a href="mailto:antoine@metalu.net" target="_blank">antoine@metalu.net</a>> escreveu:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"> [list split] would accept negative indices (counting from the end)<br></blockquote><div><br></div><div>+10!</div></div></blockquote><div><br></div><div>yeah, that's great. I have a n external that does that [slice] and would gladly remove it for a vanilla solution.</div><div> <br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le jeu. 24 mars 2022 à 08:16, IOhannes m zmoelnig <<a href="mailto:zmoelnig@iem.at" target="_blank">zmoelnig@iem.at</a>> a écrit :</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
i'm not sure i can follow.<br>
[file split] always outputs a list, regardless of spaces.<br>
ifa filename contains spaces, i here get something like:<br>
[list foo\ bar.pd(<br>
(that's a "list"-message with a single symbol-atom "foo bar.pd")<br></blockquote></div></blockquote><div><br></div><div>yeah that's not the issue </div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
however, i noticed that my unit-tests (that are automatically run on <br>
linux, windows and macOS) do not cover splitting files with spaces.<br>
so i might have missed some cross-platform thing.<br></blockquote></div></blockquote><div><br></div><div>yup, this is the issue, when splitting a file with a space, like <i>Users/porres/Desktop/rename\ copy.pd</i></div><div><br></div><div>I get: </div><div><br></div><div> list / Users porres Desktop <u>list\ rename\ copy.pd</u><br></div><div> </div><div>so for the file name I actually get <b>symbol list\ rename\ copy.pd</b></div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
that seems very high-level to me.<br></blockquote></div></blockquote><div><br></div><div>I'll insist and say I think it'd be really nice if we could have a [file seek] object that browses through files in a directory. But anyway, I can keep using [else/dir] for that.</div><div><br></div><div>cheers </div></div></div>