ryansturmer / thinfat32

A lightweight implementation of the fat32 filesystem specification in C for embedded systems.
MIT License
101 stars 25 forks source link

ls() #5

Open ryansturmer opened 11 years ago

ryansturmer commented 11 years ago

It would be nice to have an ls() like function that would list the files in a directory. Maybe something with a static component so you could call it over and over on a directory, and it would give you successive new paths every time.

fogleman commented 11 years ago

static? no way man. think about thread safety.

ryansturmer commented 11 years ago

Embedded! No threads!

Well, usually. Either way, I guess a better way of putting it is "context retaining" rather than "static"

kainjow commented 9 years ago

I agree with @fogleman. If you're going to add this, just make a small struct as another input param for your context. That won't harm anything and makes thread safety a nice feature for those who want it.