~welt/murse

ae57188611b4c4f0f6ac53fdef7a277a2b8fc78a — welt 4 months ago cdd4a5b
Fix directories not being detected
2 files changed, 3 insertions(+), 3 deletions(-)

M files.go
M jobs.go
M files.go => files.go +2 -2
@@ 72,8 72,8 @@ func isProtected(file string) bool {
	if strings.HasPrefix(file, "cfg/") ||
		strings.HasSuffix(file, ".cfg") ||
		strings.HasSuffix(file, ".dem") ||
		strings.HasSuffix(file, "custom") ||
		strings.HasSuffix(file, "downloads") ||
		strings.HasPrefix(file, "custom") ||
		strings.HasPrefix(file, "downloads") ||
		strings.HasSuffix(file, "cache") {
		return true
	}

M jobs.go => jobs.go +1 -1
@@ 78,7 78,6 @@ func startDownloadVerify(files map[string]string, lfiles map[string]string) (boo
				}
			}
			wp.Submit(f)

		} // end scope
	}



@@ 103,6 102,7 @@ func startDownloadVerify(files map[string]string, lfiles map[string]string) (boo
				donec <- true
				return
			}

			time.Sleep(8 * time.Millisecond)
		}