Skip to content

Commit ae4ec3f

Browse files
committed
fserrors: add Recursion and Closed error kinds
1 parent ee0472d commit ae4ec3f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

internal/filesystem/errors/errors.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ const (
2727
NotDir // Item is not a directory.
2828
NotEmpty // Directory not empty.
2929
ReadOnly // File system has no modification capabilities.
30+
Recursion // Item has recurred too many times. E.g. an infinite symlink loop.
31+
Closed // Item was never opened or has already been closed.
3032
)
3133

3234
func (e *Error) Unwrap() error { return &e.PathError }

0 commit comments

Comments
 (0)