3 ms·
It could have checked for ".\0" and "..\0", is the thing. There was no need to bring the whole of strcmp to bear. I think hiding files with a path convention i
by samatman 4y ago
It could have checked for ".\0" and "..\0", is the thing. There was no need to bring the whole of strcmp to bear.
I think hiding files with a path convention is Good, Actually, but I'm comfortable being in the minority on that, and it's possible that if we instead had a hidden flag a la chmod permissions I would prefer that.
- Findecanor 4y agoI think dotfiles is the best convention I've seen for hidden files. With "hidden" being a file attribute (like on MS-DOS), you'd have the risk of a filename collision with a file that you don't know is there.