Implemented directory walk

This commit is contained in:
2023-10-20 15:29:40 +02:00
parent 0fe419da86
commit 886ea27d54
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)
}