mirror of
https://github.com/terorie/od-database-crawler.git
synced 2025-04-20 10:56:44 +00:00
Open result files in append-mode
This commit is contained in:
parent
a83eb0cfd7
commit
8d68bf1bbc
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user