diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/http/http.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/http/http.go b/src/http/http.go index f487cfd..b4c3045 100644 --- a/src/http/http.go +++ b/src/http/http.go @@ -178,6 +178,9 @@ func pathHandler(w http.ResponseWriter, r *http.Request) { var dirCount int = 0 var fileCount int = 0 for _, f := range files { + + // if the current file is not valid, continue to the next file skipping + // the rest of this loop iteration if filterIsValid(f.Name()) == false { continue } |