Skip to content

Commit

Permalink
Change psychds's ignore file's name to ".psychds-ignore"
Browse files Browse the repository at this point in the history
  • Loading branch information
okaycj committed Jan 29, 2025
1 parent e2b0a72 commit 369f988
Show file tree
Hide file tree
Showing 5 changed files with 809 additions and 809 deletions.
2 changes: 1 addition & 1 deletion bundled/psychds-validator.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/files/deno.ts
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ async function _readFileTree(
ignore,
);

if (dirEntry.name === ".psychdsignore") {
if (dirEntry.name === ".psychds-ignore") {
ignore.add(await readPsychDSIgnore(file));
}

Expand Down Expand Up @@ -224,7 +224,7 @@ async function _readFileTree(
const file = new psychDSFileDeno(".", path, ignore);
file.webFile = rootPathOrDict[key]["file"];

if (key === ".psychdsignore") {
if (key === ".psychds-ignore") {
ignore.add(await readPsychDSIgnore(file));
}
tree.files.push(file);
Expand Down
2 changes: 1 addition & 1 deletion src/files/ignore.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { assertEquals } from "../deps/asserts.ts";
import { FileIgnoreRules } from "./ignore.ts";

Deno.test("Deno implementation of FileIgnoreRules", async (t) => {
await t.step("handles basic .psychdsignore rules", () => {
await t.step("handles basic .psychds-ignore rules", () => {
const files = [
"/sub-01/anat/sub-01_T1w.nii.gz",
"/dataset_description.json",
Expand Down
2 changes: 1 addition & 1 deletion src/files/ignore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { psychDSFile } from "../types/file.ts";
import { Ignore, ignore } from "../deps/ignore.ts";

/**
* Reads and parses a .psychdsignore file
* Reads and parses a .psychds-ignore file
* Converts file content into array of ignore patterns
*
* @param file - File object containing ignore rules
Expand Down
Loading

0 comments on commit 369f988

Please sign in to comment.