summaryrefslogtreecommitdiff
path: root/shell.go
diff options
context:
space:
mode:
Diffstat (limited to 'shell.go')
-rw-r--r--shell.go7
1 files changed, 7 insertions, 0 deletions
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 {