removes not a directory error

This commit is contained in:
Shreyas Goenka 2023-06-06 00:34:09 +02:00
parent 96290320b2
commit e9a309e85d
No known key found for this signature in database
GPG Key ID: 92A07DF49CCB0622
1 changed files with 0 additions and 14 deletions

View File

@ -51,20 +51,6 @@ func (err NoSuchDirectoryError) Is(other error) bool {
return other == fs.ErrNotExist
}
var ErrNotADirectory = errors.New("not a directory")
type NotADirectory struct {
path string
}
func (err NotADirectory) Error() string {
return fmt.Sprintf("%s is not a directory", err.path)
}
func (err NotADirectory) Is(other error) bool {
return other == ErrNotADirectory
}
// Filer is used to access files in a workspace.
// It has implementations for accessing files in WSFS and in DBFS.
type Filer interface {