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
No known key found for this signature in database
GPG Key ID: C268B2BBDA2ABECB

View File

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