On 22 March 2011 05:47, Shantanu Kumar <kumar.shant...@gmail.com> wrote:
> On Mar 22, 3:29 am, siyu798 <siyu...@gmail.com> wrote:
>> (dirname "/a/b/c") should return "/a/b/" on both win and unix
>
> You can write such a function yourself. Irrespective of the platform,
> Java works fine with '/' as a separator in the filename.

In fact, this is not limited to Java. '/' is a path separator on equal
footing with '\' on Windows (short of UNC paths, regrettably). This
fact is often obscured by applications that make use of some ad-hoc
path mangling and implicitly assume '\' as the only path separator.

Interesting read:
http://en.wikipedia.org/wiki/Path_(computing)#MS-DOS.2FMicrosoft_Windows_style

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en

Reply via email to