Implemented directory walk

This commit is contained in:
Eduard Urbach 2023-10-20 15:29:40 +02:00
parent 47c2076f2e
commit 3a002a7562
Signed by: eduard
GPG key ID: 49226B848C78F6C8
13 changed files with 100 additions and 20 deletions

15
errors/InvalidPath.go Normal file
View file

@ -0,0 +1,15 @@
package errors
import "fmt"
type InvalidDirectory struct {
Path string
}
func (err *InvalidDirectory) Error() string {
if err.Path == "" {
return "Invalid directory"
}
return fmt.Sprintf("Invalid directory '%s'", err.Path)
}