How to check if a folder is a database folder and if it's already open?

Could I know what is your use case? We never had this issue come up before. We can definitely implement this as a feature, but it might take some time.

@laylamalik using LOCK file in the badger directory could help you figure out if a badger is already running there or not. However it seems like it’s not being deleted properly after the badger is killed.