dbuenzli / fpath

File paths for OCaml
http://erratique.ch/software/fpath
ISC License
26 stars 10 forks source link

to_posix_string and to_windows_string functions #11

Open hcarty opened 6 years ago

hcarty commented 6 years ago

Along the lines of #1 it would be useful to support POSIX and Windows path renderings for applications which may communicate across platforms.

rseymour commented 5 years ago

I could use this as well. Either as to_posix_string / to_windows_string or a way to treat a path implicitly as the compiled platform (default) or a chosen platform in most functions. For instance reading in "C:\whatever\thing.exe" on a mac should be able to be flagged and treated as "C://whatever//thing.exe" and get the same filename/basename considerations as it would on windows.