We facing a problem where we need to configure a path in one of our config-file.yml
. It's a path to an CLI-Script. We facing an old known problem "directory separators" for UNIX/Windows - /
- \
. Now we want to configure just one path for both OSs.
Currently we need to switch the path manually depending on the currently used OS. This breaks our VCS handling / application stability all the time.
Unix
bin_path: path/to/script
Windows
bin_path: path\to\script
Is there something like a placeholder known from PHP superglobal DIRECTORY_SEPARATOR
? We focusing a solution where we not need to replace the separators in our scripts. I stuck in this problem for a couple of times when using yaml files.