[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[sc-dev] String:escapeSpaces

I was having a problem with a server not booting from a build in a dir with several spaces in the path.

Any reason not to add this:

+ String {
escapeSpaces { 
var result;
this.do({ arg char;
if(char.isSpace,{result = result ++ $\\ ++ " "},{result = result ++ char})

and then stick it in in the various String methods which deal with paths?