Skip to content

Commit

Permalink
Enable munching subfolders
Browse files Browse the repository at this point in the history
  • Loading branch information
sajmoni committed Aug 25, 2019
1 parent 62380bd commit d89b494
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
Binary file added example/sprites/subfolder/green.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ try {
function processFolder(folder) {
fs.readdirSync(folder).forEach((file) => {
if (fs.statSync(path.join(folder, file)).isDirectory()) {
processFolder(`${folder + file}/`)
processFolder(`${folder}/${file}/`)
} else if (file.endsWith('.piskel')) {
piskelToPNG(folder, file)
} else if (file.endsWith('.png')) {
Expand Down

0 comments on commit d89b494

Please sign in to comment.