-
- Downloads
Merge branch 'fix_usersettings_sig' into 'master'
Fix signature using wrong filename See merge request !391
-
@rswindell Will this work on Windows? Windows uses backslashes (\) to separate directories. I thought it would be standard practice to use backslash() to ensure the path has the correct slash in it?
Edited by Eric Oulashin -
Forward slash works just fine in Windows. See
exec/*.js
for plenty of examples of this use.A backslash is only important when the path might be passed to external program, and that conversion happens automatically by Synchronet, when necessary (and only on Windows).
So use a forward slash in paths.
-
backslash() is for appending a slash or backslash on the end of a string when you're going to possibly pass that string onto an OS path interpreter (e.g. command.com, cmd.exe) where it then matters if it's a backward or forward slash (on Windows).
backslash() is not deprecated is sometimes necessary, like I said, when you're passing the resulting string on to an external program.