1
0
mirror of https://github.com/minio/mc.git synced 2025-11-14 23:42:27 +03:00
Files
mc/pkg/client/fs/fs_errors.go

28 lines
638 B
Go

package fs
// GenericFileError - generic file error
type GenericFileError struct {
path string
}
// FileNotFound (ENOENT) - file not found
type FileNotFound GenericFileError
func (e FileNotFound) Error() string {
return "Requested file " + e.path + "not found"
}
// FileISDir (EISDIR) - accessed file is a directory
type FileISDir GenericFileError
func (e FileISDir) Error() string {
return "Requested file " + e.path + "is a directory"
}
// FileNotDir (ENOTDIR) - accessed file is not a directory
type FileNotDir GenericFileError
func (e FileNotDir) Error() string {
return "Requested file " + e.path + "is not a directory"
}