Create fs.Directory interface and use it everywhere

This commit is contained in:
Nick Craig-Wood
2017-06-30 14:26:59 +01:00
parent e2d7d413ef
commit e7d04fc103
31 changed files with 226 additions and 250 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ var commandDefintion = &cobra.Command{
return nil
}
for _, entry := range entries {
_, isDir := entry.(*fs.Dir)
_, isDir := entry.(fs.Directory)
if isDir {
fmt.Println(entry.Remote() + "/")
} else {