Relative Content

Tag Archive for linuxgo

How ls -a command sort files?

I’m trying to create my own ls command using golnag. I’m using filepath.walk(path) to access files, it shows all the files and folders correctly and in order when using ls. when trying to shows the hidden files it shows them but the order different than ls-a.
for example:
my code shows -> .get a then b
but ls -a -> a then b then .get