Kirlovon/aloedb

Can't open database with absolute path

canac opened this issue · 1 comments

canac commented

First of all, this is a super useful library, so thanks for your work on it!

I'm running into a bug where aloedb can't open databases with absolute paths. getPathDirname('/Users/canac/db.json') returns 'Users/canac' without the leading /, which then causes errors when trying to open the database file. You should just be able to use the native dirname function in the path module instead of a handwritten utility.

canac commented

Would you accept a PR to fix this?