1
0
mirror of https://github.com/ipfs/kubo.git synced 2025-09-11 15:15:58 +08:00
Files
kubo/repo/repo.go
Brian Tiger Chow 2c38487eb0 fix(eventlog) configure logging if repo is initialized
License: MIT
Signed-off-by: Brian Tiger Chow <brian@perfmode.com>
2014-11-24 16:05:51 -08:00

16 lines
336 B
Go

package repo
import util "github.com/jbenet/go-ipfs/util"
// IsInitialized returns true if the path is home to an initialized IPFS
// repository.
func IsInitialized(path string) bool {
if !util.FileExists(path) {
return false
}
// TODO add logging check
// TODO add datastore check
// TODO add config file check
return true
}