Skip to content

Instantly share code, notes, and snippets.

@MarcoNicolodi
Created January 26, 2019 21:19
Show Gist options
  • Save MarcoNicolodi/a9e152f517c995f7e1b361ed38cb278a to your computer and use it in GitHub Desktop.
Save MarcoNicolodi/a9e152f517c995f7e1b361ed38cb278a to your computer and use it in GitHub Desktop.
if (matching) {
candidateFiles = await filesystem.find(directory, { matching })
} else {
candidateFiles = await filesystem.list(directory)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment