Skip to content

Commit

Permalink
fix(gatsby-source-filesystem): Support creating file nodes for paths …
Browse files Browse the repository at this point in the history
…containing folders (#25687)
  • Loading branch information
jshearer authored Jul 16, 2020
1 parent 26a9919 commit 4f8dab3
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,8 @@ async function processBufferNode({
ext = filetype ? `.${filetype.ext}` : `.bin`
}

await fs.ensureDir(path.join(pluginCacheDir, hash))
filename = createFilePath(path.join(pluginCacheDir, hash), name, ext)
await fs.ensureDir(path.dirname(filename))

// Cache the buffer contents
await writeBuffer(filename, buffer)
Expand Down

0 comments on commit 4f8dab3

Please sign in to comment.