开发者

Is there a way to open/read a database file created by updatedb with python?

开发者 https://www.devze.com 2023-02-23 06:57 出处:网络
I\'m just curious if anyone has done this before. I\'d like to use the datab开发者_Go百科ase file generated by updatedb as sort of a \"cache\" for a searching mechanism, but without having to make any

I'm just curious if anyone has done this before. I'd like to use the datab开发者_Go百科ase file generated by updatedb as sort of a "cache" for a searching mechanism, but without having to make any external calls to 'locate'.


Try having a look at this file:

https://github.com/WojciechMula/locatedb

I believe it does what you are looking for.


There is also plocate. It supports the mlocate db format which is very common. But have a look at the TODO section of the README.rst if it suits your needs.

0

精彩评论

暂无评论...
验证码 换一张
取 消