mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-17 21:01:26 +02:00
Adjust the sanity check to path length 4
This commit is contained in:
@@ -468,7 +468,7 @@ func FindCWD() (string, error) {
|
|||||||
func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
|
func SymbolicWalk(fs afero.Fs, root string, walker filepath.WalkFunc) error {
|
||||||
|
|
||||||
// Sanity check
|
// Sanity check
|
||||||
if len(root) < 5 {
|
if len(root) < 4 {
|
||||||
return fmt.Errorf("Path to short, cannot walk the root: %s", root)
|
return fmt.Errorf("Path to short, cannot walk the root: %s", root)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user