Pro Tip: Now and then, git grep your source code for occurrences of the string literal "file://".
Uncategorized
1
Posts
1
Posters
0
Views
-
Pro Tip: Now and then, git grep your source code for occurrences of the string literal "file://". It is almost always a sign of a bug. You can not create a file: URI by just prefixing an absolute pathname with "file://". Especially not on Windows, but you shouldn't do it on POSIX either, in case the pathname might contain for instance spaces.
And yes, some people do use file and folder* names with spaces even on Linux.
Especially all the hundreds of millions of people who now have switched from Windows to Linux thanks to #EndOf10 if one believes Linux advocates. Why would they know to avoid spaces in names when such have been completely normal on Windows?
*) I say folder instead of directory just to annoy people who get annoyed by that. -
undefined oblomov@sociale.network shared this topic on