From 04200620823cf9b11e0185234429af6180110adc Mon Sep 17 00:00:00 2001 From: Marin Ivanov Date: Mon, 15 Aug 2022 03:33:22 +0300 Subject: Test Remove, RemoveAll, Rename --- file.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'file.go') 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 -- cgit v1.2.3