From 412658698a6d1ad09d64723e9a10e676c77afa94 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 1 Dec 2024 16:04:07 -0600 Subject: Repotype() working somewhat --- shell.go | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'shell.go') diff --git a/shell.go b/shell.go index 8724a34..2bde405 100644 --- a/shell.go +++ b/shell.go @@ -61,6 +61,13 @@ func (repo *Repo) Exists(filename string) bool { return true } +func (repo *Repo) IsValid() bool { + if !repo.IsDirectory() { + return false + } + return true +} + func (repo *Repo) IsDirectory() bool { info, err := os.Stat(repo.FullPath) if err != nil { -- cgit v1.2.3