Jump to content




Hidden Files


5 replies to this topic

#1 exosceleton

  • Members
  • 51 posts
  • LocationUmm... Mars.

Posted 31 July 2016 - 08:49 AM

CraftOS will hide files beginning with a period (.) from the Auto Complete, fs.list() and any similar functions.
For reference: http://askubuntu.com...t-are-dot-files

#2 Lyqyd

    Lua Liquidator

  • Moderators
  • 8,364 posts

Posted 31 July 2016 - 04:19 PM

Dotfiles are hidden from the results given by the list program. Things like fs.list must still be able to see those files, though.

#3 exosceleton

  • Members
  • 51 posts
  • LocationUmm... Mars.

Posted 15 August 2016 - 06:04 PM

View PostLyqyd, on 31 July 2016 - 04:19 PM, said:

Dotfiles are hidden from the results given by the list program. Things like fs.list must still be able to see those files, though.
Yes I know. What I meant was that the auto complete in the shell should hide those files. It seems logical, since you could use that to create data files, like ".users" or ".data" or something. I agree that a accessing the file directly, or even using fs.list should work as usual. Its just that it would make sense, that the shell would not auto complete it. This means that its not completely hidden, but still... considered hidden.

Edited by exoskeleton, 15 August 2016 - 06:06 PM.


#4 Adn

  • Members
  • 3 posts

Posted 14 September 2016 - 04:55 PM

One could also implement a boolean argument for fs.list() to control wether to show or hide hidden files.

#5 InternetUnexplorer

  • Members
  • 22 posts
  • LocationDoes anyone actually steal SquidDev's idea here?

Posted 07 January 2017 - 07:31 PM

Yes, fs.list() shows all of the files in a directory.
This is a good thing, because without that it would be impossible to delete/modify those files from ANY program without knowing their exact names, and that would be a huge problem.
If you want, you can make your own version of fs.list() and replace the default one before the shell is loaded, but this may cause problems with other programs that will assume that fs.list() will show hidden files.


Oh, I see what you mean. I personally like autocomplete for hidden files, but it would be nice if there was a user configurable setting.

Edited by InternetUnexplorer, 07 January 2017 - 07:34 PM.


#6 H4X0RZ

  • Members
  • 1,286 posts
  • LocationGermany

Posted 07 January 2017 - 08:05 PM

Why shouldn't it autocomplete these files, though?

All the major Linux shells are doing this too, I believe, so i don't really see where you got that idea. The user should always be in control of their PC, and hiding files makes that a bit... hard.





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users