Fork me on GitHub
#babashka
<
2023-05-10
>
Peter Tonner20:05:35

I'm on macos and just discovered fs/path-separator is ":"? Am I totally missing something? thought it should be "/"

Peter Tonner20:05:53

oh I guess I was missing something, bc this is for splitting list of paths

Peter Tonner20:05:58

I was looking for how to split directory names? will it be cross platform if I do (str/split (str (fs/cwd)) #"/")?

Bob B20:05:04

I believe file-separator is the value you might want - iirc, file-separator translates to File.separator and path-separator translates to File.pathSeparator

til 2
👍 2