Skip to content

Commit

Permalink
fix(dimse): the issue of file path in different operating systems
Browse files Browse the repository at this point in the history
  • Loading branch information
Chinlinlee committed Jan 4, 2024
1 parent ed744b0 commit b23d78a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
8 changes: 5 additions & 3 deletions dimse-sql/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,11 @@ async function getInstancesFromKeysAttr(keys) {

for (let instance of instances) {
let instanceFile = await File.newInstanceAsync(
path.join(
raccoonConfig.dicomWebConfig.storeRootPath,
instance.instancePath
path.resolve(
path.join(
raccoonConfig.dicomWebConfig.storeRootPath,
instance.instancePath
)
)
);

Expand Down
8 changes: 5 additions & 3 deletions dimse/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,11 @@ async function getInstancesFromKeysAttr(keys) {

for (let instance of instances) {
let instanceFile = await File.newInstanceAsync(
path.join(
raccoonConfig.dicomWebConfig.storeRootPath,
instance.instancePath
path.resolve(
path.join(
raccoonConfig.dicomWebConfig.storeRootPath,
instance.instancePath
)
)
);

Expand Down

0 comments on commit b23d78a

Please sign in to comment.