mirror of https://github.com/databricks/cli.git
removes not a directory error
This commit is contained in:
parent
96290320b2
commit
e9a309e85d
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue