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
0
Hidden Files
Started by exosceleton, Jul 31 2016 08:49 AM
5 replies to this topic
#1
Posted 31 July 2016 - 08:49 AM
#2
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
Posted 15 August 2016 - 06:04 PM
Lyqyd, 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.
Edited by exoskeleton, 15 August 2016 - 06:06 PM.
#4
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
Posted 07 January 2017 - 07:31 PM
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
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.
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