diff options
Diffstat (limited to 'shell.go')
| -rw-r--r-- | shell.go | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -60,3 +60,11 @@ func (repo *Repo) Exists(filename string) bool { } return true } + +func (repo *Repo) IsDirectory() bool { + info, err := os.Stat(repo.FullPath) + if err != nil { + return false + } + return info.IsDir() +} |
