From e9a309e85dd7ce60291f2aa70c9cf7f6bf9c0a15 Mon Sep 17 00:00:00 2001 From: Shreyas Goenka Date: Tue, 6 Jun 2023 00:34:09 +0200 Subject: [PATCH] removes not a directory error --- libs/filer/filer.go | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/libs/filer/filer.go b/libs/filer/filer.go index 1525aba3..c63a89f6 100644 --- a/libs/filer/filer.go +++ b/libs/filer/filer.go @@ -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 {