grote reorganisatie:
- HLN, NOS, NU, VRT: per week -> per dag - yyyy-ww -> yyyy.ww - yyyy* -> yyyy/yyyy* etc
This commit is contained in:
@@ -26,13 +26,24 @@ var (
|
||||
|
||||
func main() {
|
||||
|
||||
files, err := os.ReadDir("/net/corpora/nlnieuws/data/json")
|
||||
dirs, err := os.ReadDir("/net/corpora/nlnieuws/data/json")
|
||||
x(err)
|
||||
for _, dir := range dirs {
|
||||
if !dir.IsDir() {
|
||||
continue
|
||||
}
|
||||
dirname := dir.Name()
|
||||
if dirname[0] != '2' {
|
||||
continue
|
||||
}
|
||||
files, err := os.ReadDir("/net/corpora/nlnieuws/data/json/" + dirname)
|
||||
x(err)
|
||||
|
||||
for _, file := range files {
|
||||
filename := file.Name()
|
||||
if strings.HasPrefix(filename, "DATA-") && strings.HasSuffix(filename, "-4.json") {
|
||||
addWeek(filename[5:12])
|
||||
for _, file := range files {
|
||||
filename := file.Name()
|
||||
if strings.HasPrefix(filename, "DATA-") && strings.HasSuffix(filename, "-4.json") {
|
||||
addWeek(filename[5:12])
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user