This is a read-only snapshot of the ComputerCraft forums, taken in April 2020.
maninorange's profile picture

Disk Name Has A Space In It

Started by maninorange, 10 November 2013 - 06:27 AM
maninorange #1
Posted 10 November 2013 - 07:27 AM
This is one of the most simplistic questions one could have, and it feels weird even having to ask.
… I can't seem to cd to a directory with a space in its name. I also can't seem to delete said directory. (With the rom delete program, anyway.)
… I've tried putting quotes around it…. I've tried the entire path…. in quotes…. repeat with single quotes…..
I managed to delete the directory by opening the lua interpreter and fs.delete()-ing it, but is there a more convenient way to do this?
Wojbie #2
Posted 10 November 2013 - 07:34 AM
Not that i know off - standard shell automatically splits commands into worla at spaces.
So if you have "Folder Name"
and call "rm Folder Name"
Shell sees it as = "rm" "Folder" "Name"
Most of custom ones do the same.
I like to think of is as a feature - folders/files with spaces are harder to delete - less likely someone will bother.
Edited on 10 November 2013 - 06:35 AM