mirror of
https://github.com/gohugoio/hugo.git
synced 2024-11-21 20:46:30 -05:00
Adjust the sanity check to path length 4
This commit is contained in:
parent
94d998989d
commit
15b6693541
1 changed files with 1 additions and 1 deletions
|
@ -468,7 +468,7 @@ func FindCWD() (string, error) {
|
|||
func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
|
||||
|
||||
// Sanity check
|
||||
if len(root) < 5 {
|
||||
if len(root) < 4 {
|
||||
return fmt.Errorf("Path to short, cannot walk the root: %s", root)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue