开发者

Spaces in Directory Names

开发者 https://www.devze.com 2023-02-09 20:13 出处:网络
Is putting a space in a directory name still a big deal? I\'ve been doing some reading, but all the articles are from the early 2000s. Is it a problem now?

Is putting a space in a directory name still a big deal? I've been doing some reading, but all the articles are from the early 2000s. Is it a problem now?

For those who don't get what I mean: public_html/space directory/index.html

If this is still an issue, why shouldn't I use space开发者_运维知识库s when naming files and directories?


Spaces in URLs are still special characters that need to be escaped or encoded (either a + or %20).


Well, I am still crossing fingers when executing external processes (from ant or Java's ProcessBuilder for example). If you just pass this dir to the external process within the command - it may break apart in two arguments which is clearly not what you want.

Some quoting and minding the spaces is still required in some usecases.

0

精彩评论

暂无评论...
验证码 换一张
取 消