Linux-style path on windows or vice versa
NOTE: I should have included this in advance. I am very aware this is a very bad idea, that it makes little sense, etc. But sometimes, there are situations outside of our control that drive us to find solutions that make no sense.
We have a requirement for a property file to be placed on both windows and linux without changes and it contains absolute paths. I know that basic "/some/path" works on both, but on Windows, that's a path based on the current drive letter.
Is there some way to specify a path in such a way that it could go across drive letters on Windows?
In other words, if "/D:/some/path" worked on windows (which it doesn't) that path could be created on Linux. Is there something like that that could work?