diff options
| author | Jeff Carr <[email protected]> | 2024-12-01 16:04:07 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2024-12-01 16:04:07 -0600 |
| commit | 412658698a6d1ad09d64723e9a10e676c77afa94 (patch) | |
| tree | d9b3622eee7414982589dc0496c76854fd1b7600 /shell.go | |
| parent | 82935ae6b2d413322b18a9b487973e5ab04e6efd (diff) | |
Repotype() working somewhatv0.0.15
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 { |
