Skip to content

Commit

Permalink
un-hotfix the hotfix
Browse files Browse the repository at this point in the history
  • Loading branch information
3vorp committed Oct 8, 2023
1 parent 4d64088 commit 1dc514e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/helpers/functions/missing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,13 +195,13 @@ export const compute = async (
};

export const getAllFilesFromDir = (dir: string, filter: string[] = []): string[] => {
let fileList = [];
const fileList = [];
readdirSync(dir).forEach((file) => {
file = normalize(join(dir, file));
const stat = statSync(file);

if (!file.includes(".git")) {
if (stat.isDirectory()) fileList = fileList.concat(getAllFilesFromDir(file, filter));
if (stat.isDirectory()) fileList.push(...getAllFilesFromDir(file, filter));
else {
if (
(file.endsWith(".png") || file.endsWith(".tga")) &&
Expand Down

0 comments on commit 1dc514e

Please sign in to comment.