Skip to content

Commit

Permalink
367 More detailed file_path comment
Browse files Browse the repository at this point in the history
  • Loading branch information
pgarrison committed Dec 20, 2024
1 parent 66f572c commit 8817332
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/core/entity/FileDetail/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,8 @@ export default class FileDetail {
throw new Error("File Path is not defined");
}

// AICS FMS files have paths like staging.files.allencell.org/130/b23/bfe/117/2a4/71b/746/002/064/db4/1a/danny_int_test_4.txt
// AICS FMS files have paths like this in fileDetail.file_path:
// staging.files.allencell.org/130/b23/bfe/117/2a4/71b/746/002/064/db4/1a/danny_int_test_4.txt
if (typeof path === "string" && path.startsWith(AICS_FMS_S3_BUCKET)) {
return FileDetail.convertAicsS3PathToHttpUrl(path) as string;
}
Expand Down

0 comments on commit 8817332

Please sign in to comment.