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

[1.7.8][ssp/smp] Auto comlpete does not respect hidden files

Started by exosceleton, 07 February 2016 - 03:15 PM
exosceleton #1
Posted 07 February 2016 - 04:15 PM
The built-in auto completion feature added in CC-1.7.6 does not respect hidden files (files starting with '.').
Note that the "ls" program, the "list" program, and the​ ls.find() function respect such hidden files.
Edited on 17 August 2016 - 05:27 AM
Lyqyd #2
Posted 07 February 2016 - 06:46 PM
The list program is the only thing I know of that does not include files in which the name begins with a period. If you read the program, you'll note that it specifically filters out those files from the results of fs.list.
exosceleton #3
Posted 31 July 2016 - 09:35 AM
So this is intentional? That kind of odd, since CraftOS is very similar to Linux, and Linux considers .XXX files as hidden if I recall correctly. Is there any alternative way to create hidden files in CraftOS?
KingofGamesYami #4
Posted 31 July 2016 - 05:22 PM
Is there any alternative way to create hidden files in CraftOS?

You can overwrite the functions to not return files starting with a period very easily.
TheRockettek #5
Posted 01 August 2016 - 07:47 PM
Linux considers .XXX files as hidden if I recall correctly.

I believe all OS' recall them as hidden files ;)/>/>

(Well the popular ones)