Skip to content

Commit

Permalink
fix(resources): fix file listing in processor
Browse files Browse the repository at this point in the history
  • Loading branch information
larsgw committed Nov 3, 2023
1 parent 9fe9b3e commit 009b980
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/process-resources.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ async function listFiles (directory: string): Promise<string[]> {
async function listUnprocessedFiles (directory: string, outputDirectory: string): Promise<string[]> {
const input = await listFiles(directory)
const output = new Set(await fs.readdir(outputDirectory))
return input.filter(file => output.has(file + '-1'))
return input.filter(file => !output.has(file + '-1.csv'))
}

async function listChangedFiles (directory: string): Promise<string[]> {
Expand Down

0 comments on commit 009b980

Please sign in to comment.