summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
Diffstat (limited to 'file.go')
-rw-r--r--file.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/file.go b/file.go
index 0a7a3e5..ef952cb 100644
--- a/file.go
+++ b/file.go
@@ -72,7 +72,7 @@ func (f *File) Name() string {
func (f *File) readdir(count int, onlyDir bool) ([]os.FileInfo, error) {
if !isDirPath(f.key) {
- return nil, ErrUnsupported
+ return nil, ErrNotDirectory
}
if count == 0 {
return []os.FileInfo{}, nil