Skip to content

Piero Bosio Social Web Site Personale Logo Fediverso

Social Forum federato con il resto del mondo. Non contano le istanze, contano le persone

Pro Tip: Now and then, git grep your source code for occurrences of the string literal "file://".

Uncategorized
1 1 0
  • 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 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.

  • oblomov@sociale.networkundefined oblomov@sociale.network shared this topic on

Gli ultimi otto messaggi ricevuti dalla Federazione
Post suggeriti