o
odinpkg.dev
packages / library / ls-odin

ls-odin

7efcd61library

Naive ls clone in Odin

No license · updated 5 months ago

Readme

This is a simple, naive attempt at implementing ls in odin.

It supports ls and -a and -l. These flags can also be combine -la.

I’m not sure how much further I’ll take this as it’s a learning exercise.

Limitations:

  • Currently only works on the current folder, though it would be easy to accept a path to a new folder, though I’d have to see about relative vs absolute.
  • It doesn’t support any other flags
  • It doesn’t show the file’s owner. Right now, I don’t even see a way to grab that in the Odin libraries.
  • No fancy colors

I did a little bit to update the size of a few fields so they would line up nicely, but it’s not a focus so I didn’t keep going with that.