Jump to content




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


4 replies to this topic

#1 exosceleton

  • Members
  • 52 posts
  • LocationUmm... Mars.

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 by exosceleton, 17 August 2016 - 06:27 AM.


#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,465 posts

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.

#3 exosceleton

  • Members
  • 52 posts
  • LocationUmm... Mars.

Posted 31 July 2016 - 08: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?

#4 KingofGamesYami

  • Members
  • 3,002 posts
  • LocationUnited States of America

Posted 31 July 2016 - 04:22 PM

View Postexoskeleton, on 31 July 2016 - 08:35 AM, said:

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.

#5 TheRockettek

  • Members
  • 547 posts
  • LocationRem is best girl

Posted 01 August 2016 - 06:47 PM

View Postexoskeleton, on 31 July 2016 - 08:35 AM, said:

Linux considers .XXX files as hidden if I recall correctly.

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

(Well the popular ones)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users