- commit
- 0c6b9a9
- parent
- 358794c
- author
- Antonio Mika
- date
- 2023-11-10 18:32:04 +0000 UTC
Skip empty files in rsync
1 files changed,
+4,
-0
+4,
-0
1@@ -56,6 +56,10 @@ func (h *handler) List(rPath string) ([]fs.FileInfo, error) {
2 var newList []fs.FileInfo
3
4 for _, f := range list {
5+ if !f.IsDir() && f.Size() == 0 {
6+ continue
7+ }
8+
9 fname := f.Name()
10 if strings.HasPrefix(f.Name(), "/") {
11 fname = path.Join(rPath, f.Name())