Implemented directory walk
This commit is contained in:
parent
47c2076f2e
commit
3a002a7562
13 changed files with 100 additions and 20 deletions
15
errors/InvalidPath.go
Normal file
15
errors/InvalidPath.go
Normal 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)
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue