summaryrefslogtreecommitdiff
path: root/file.go
diff options
context:
space:
mode:
authorMarin Ivanov <[email protected]>2022-08-15 03:33:22 +0300
committerMarin Ivanov <[email protected]>2022-08-15 03:33:22 +0300
commit04200620823cf9b11e0185234429af6180110adc (patch)
tree6a63c0cabec90c3562c939d38c8e51e99dd48e0d /file.go
parent2f1bb584258c53d74f97b04a6045f0e0b838f061 (diff)
Test Remove, RemoveAll, Rename
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