<br><br><div class="gmail_quote">On Sat, Jan 10, 2009 at 8:14 PM, Eli Barzilay <span dir="ltr"><<a href="mailto:eli@barzilay.org" target="_blank">eli@barzilay.org</a>></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?' sense -- so you get an<br>
error. But you can use `split-path' directly (which is what<br>
`file-name-from-path' is doing):<br>
<br>
(let-values ([(base file dir?)<br>
(split-path (bytes->path #"c:\\foo\\bar.txt" 'windows))])<br>
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. It took me a while to figure out how to convert windows-path back to string: first use path->bytes and then bytes->string/utf-8. <br>
<br>Are there thoughts to allow all path functions to manipulate the different path types? It seems the differences between these path types are not great.<br><br>Thanks,<br>yc<br><br><br></div></div><br>