Open result files in append-mode

This commit is contained in:
Richard Patel
2019-02-03 15:06:52 +01:00
parent a83eb0cfd7
commit 8d68bf1bbc

View File

@@ -125,7 +125,7 @@ func (o *OD) Watch(results chan File) {
// Open crawl results file
f, err := os.OpenFile(
filePath,
os.O_CREATE | os.O_RDWR | os.O_TRUNC,
os.O_CREATE | os.O_RDWR | os.O_APPEND,
0644,
)
if err != nil {