feat: recursive create folder
This commit is contained in:
@ -1,11 +1,18 @@
|
||||
package driver
|
||||
|
||||
import "errors"
|
||||
import (
|
||||
"errors"
|
||||
|
||||
pkgerr "github.com/pkg/errors"
|
||||
)
|
||||
|
||||
var (
|
||||
ErrorDirNotFound = errors.New("directory not found")
|
||||
ErrorObjectNotFound = errors.New("object not found")
|
||||
ErrNotImplement = errors.New("not implement")
|
||||
ErrNotSupport = errors.New("not support")
|
||||
ErrRelativePath = errors.New("access using relative path is not allowed")
|
||||
)
|
||||
|
||||
func IsErrObjectNotFound(err error) bool {
|
||||
return pkgerr.Cause(err) == ErrorObjectNotFound
|
||||
}
|
||||
|
Reference in New Issue
Block a user