doit icon indicating copy to clipboard operation
doit copied to clipboard

Inconsistent database file naming

Open ri0t opened this issue 8 years ago • 2 comments

Depending on the dbm package available, sometimes a superfluous, second ".db" is attached to the db-file.

See also https://github.com/getnikola/nikola/issues/2933

ri0t avatar Jan 07 '18 18:01 ri0t

The problem is that doit uses python stdlib dbm. It will automatically choose a dbm implementation that is available on your machine. Depending of the dbm implementation it might create a single file or several files.

doit logic is quite simplistic by appending .db to the database name. the problem is that some implementations of dbm will also add this .db extension... so doit would need to be aware of the naming conventions of each implementation... and I never really bothered.

So it is a minor issue, if anyone wants to fix it i would be glad to receive a pull-request.

schettino72 avatar Jan 07 '18 22:01 schettino72

As raised on #317. For DBM backends that generate more then one file, all files should be placed inside a folder.

schettino72 avatar Jul 27 '19 15:07 schettino72