My application has objects called "Instruments" which are representations of Windows machines connected to some lab equipment. A couple properties of these Instruments are filepath-related. My application therefore needs to check the validity of a Windows path, but I want my application to run on both Windows and Linux environments.
I'm aware of the Path
class and its methods are almost what I want, but they are OS-dependent. The checks fail when my application is running on a Linux environment. I need something that checks for Windows path validity (and absoluteness) regardless of the host OS. Is there a class that can help me or do I have to create my own implementation?