I am writing a cross-platform application that should create files on certain events, now I have a problem if my target is on a removable drive or a network drive. I want to first create a file in a temporary folder on the local hard drive and then move it to the target in order to avoid data loss in case the target path is deleted.
Now my question is: how to specify the type of path in a cross-platform approach?
source
share