In first you used wrong slashes for windows and macOS. For windows should be "\" and for macOS "/"
For macOS you should use Unix style, where did you find this macOS style with colons? I have never seen such way.
And do not forget, that you can use methods NormalizeFilename and NormalizeDirectory in the class %File. These methods can help you to fix platform differences.
- Log in to post comments



