News for hackers. Stuff that matters.
Re:A simple, fast and user-friendly alternative to ‘find’ by samatman on Friday May 20, 2022 @12:25PM (#31449568)
Oh hey look what I just found https://github.com/narumatt/sqlitefs
Re:A simple, fast and user-friendly alternative to ‘find’ by reactjavascript on Friday May 20, 2022 @12:43PM (#31449820)
>> "mount a sqlite database file as a normal filesystem"

I'm looking to do the opposite. Given a location, recurse it, stat() each file and create the database.

Re:A simple, fast and user-friendly alternative to ‘find’ by neura on Monday May 23, 2022 @11:50AM (#31480581)
If you happen to be using macOS, there's mdfind, which uses the spotlight database which is always kept up to date, unlike locate/updatedb, where updatedb is expensive to run, even if you've run it recently.

I have yet to find a good solution for linux CLI... something that uses an internal database that is kept up to date with all directory structure changes.

Maybe someone else has seen something cool for this? :D

Re:A simple, fast and user-friendly alternative to ‘find’ by samatman on Friday May 20, 2022 @02:03PM (#31450673)
It's still not clear to me whether you want the files inside the database or just the metadata. The stat part suggests the latter?

I guess I can see that, but now you have cache invalidation (someone else linked to Spotlight, which does this as a background process). SQLite files can be larger than any physical medium you can purchase so why not go the distance?

Re:A simple, fast and user-friendly alternative to ‘find’ by my69thaccount on Friday May 20, 2022 @01:25PM (#31450312)
You could also make it as a Sqlite virtual table so it's dynamic.

Also file data is available in osquery: https://osquery.io/schema/5.2.3/#file