Don't read directories either, add completion log for transfers

This commit is contained in:
Matthew Penner
2020-12-25 14:46:33 -07:00
parent 0a45ea44a4
commit a450abc080
2 changed files with 6 additions and 4 deletions

View File

@@ -43,8 +43,8 @@ func (s *Server) getServerwideIgnoredFiles() (string, error) {
return "", nil
}
// Do not read symlinks.
if stat.Mode()&os.ModeSymlink != 0 {
// Do not read directories or symlinks.
if stat.Mode()&os.ModeDir != 0 || stat.Mode()&os.ModeSymlink != 0 {
return "", nil
}