Skip to content

Commit

Permalink
Merge pull request #22 from ajmas/issue-21-test-data-ignores
Browse files Browse the repository at this point in the history
Issue #21 deal with .DS_Store on macOS, in test
  • Loading branch information
ajmas authored Apr 16, 2024
2 parents 94cad54 + dc9e904 commit 5e473e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ const asyncRimraf = promisify(rimraf);

let expectedManifest: BasicFileInfo[];

const removeTmpFolder = false;
const filesToIgnore = ['.DS_Store'];
const removeTmpFolder = true;
let tmpFolder = '';
let filefolderId;
let privateKey;
Expand All @@ -41,7 +42,7 @@ async function createdExpectedManifest (baseDir: string): Promise<BasicFileInfo[
for (let i = 0; i < files.length; i++) {
if (files[i].isDirectory()) {
walkList.push(path.join(dirpath, files[i].name));
} else if (files[i].isFile()) {
} else if (files[i].isFile() && filesToIgnore.indexOf(files[i].name) < 0) {
const filepath = path.join(dirpath, files[i].name);
const stats = await fsStat(filepath);
manifest.push({
Expand Down

0 comments on commit 5e473e6

Please sign in to comment.