Rename feed directory to feeds
Update output directory path in main.go and .gitignore to use feeds/ instead of feed/. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -200,7 +200,7 @@ func (c *Crawler) openTLDFile(tld string) error {
|
||||
|
||||
// Open new file
|
||||
if tld != "" {
|
||||
filename := "feed/" + tld + ".feed"
|
||||
filename := "feeds/" + tld + ".feed"
|
||||
file, err := os.OpenFile(filename, os.O_APPEND|os.O_CREATE|os.O_WRONLY, 0644)
|
||||
if err != nil {
|
||||
return fmt.Errorf("failed to open TLD file %s: %v", filename, err)
|
||||
@@ -217,7 +217,7 @@ func (c *Crawler) sortAndDeduplicateTLDFile() {
|
||||
return
|
||||
}
|
||||
|
||||
filename := "feed/" + c.currentTLD + ".feed"
|
||||
filename := "feeds/" + c.currentTLD + ".feed"
|
||||
|
||||
// Read all lines from the file
|
||||
file, err := os.Open(filename)
|
||||
|
||||
Reference in New Issue
Block a user