diff options
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 7 |
1 files changed, 7 insertions, 0 deletions
@@ -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 { |
