<br><br><div class="gmail_quote">On Sat, Jan 10, 2009 at 8:14 PM, Eli Barzilay <span dir="ltr">&lt;<a href="mailto:eli@barzilay.org" target="_blank">eli@barzilay.org</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">

<div><br>
</div>It looks like the reason for this is that a non-default-platform path<br>
is not considered as a path in the `path?&#39; sense -- so you get an<br>
error. &nbsp;But you can use `split-path&#39; directly (which is what<br>
`file-name-from-path&#39; is doing):<br>
<br>
(let-values ([(base file dir?)<br>
 &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;(split-path (bytes-&gt;path #&quot;c:\\foo\\bar.txt&quot; &#39;windows))])<br>
 &nbsp;file)<br>
<font color="#888888"></font></blockquote><div><br>Thanks for the tip, Eli.<br><br>It seems that windows-path cannot be directly manipulated except through a few path functions.&nbsp; It took me a while to figure out how to convert windows-path back to string: first use path-&gt;bytes and then bytes-&gt;string/utf-8. <br>
<br>Are there thoughts to allow all path functions to manipulate the different path types?&nbsp; It seems the differences between these path types are not great.<br><br>Thanks,<br>yc<br><br><br></div></div><br>