Skip to content

Commit

Permalink
fix: fixed rimraf directory usage (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidejensen authored Aug 27, 2024
1 parent 944d43e commit d40c7e9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions consumer-server/src/logic/conversion-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ export async function executeLODConversion(
}
// delete library folder
try {
await rimraf(`$PROJECT_PATH/Library`, { maxRetries: 3 })
await rimraf(`${$PROJECT_PATH}/Library`, { maxRetries: 3 })
} catch (err: any) {
logger.error(err, defaultLoggerMetadata)
}
Expand Down Expand Up @@ -377,13 +377,13 @@ export async function executeConversion(
}
// delete library folder
try {
await rimraf(`$PROJECT_PATH/Library`, { maxRetries: 3 })
await rimraf(`${$PROJECT_PATH}/Library`, { maxRetries: 3 })
} catch (err: any) {
logger.error(`Error deleting library folder: ${err}`, defaultLoggerMetadata)
}
//delete _Download folder
try {
await rimraf(`$PROJECT_PATH/Assets/_Downloaded`, { maxRetries: 3 })
await rimraf(`${$PROJECT_PATH}/Assets/_Downloaded`, { maxRetries: 3 })
} catch (err: any) {
logger.error(err, defaultLoggerMetadata)
}
Expand Down Expand Up @@ -482,7 +482,7 @@ function printLargeFolders(
}
}
} catch (err: any) {
logger.warn(`Could not printLargeFolder size. Error for ${filePath}: ${err.message}`)
logger.warn(`Could not printLargeFolder size. Error for ${filePath}: ${err.getMessage()}`)
}
}
}
Expand Down

0 comments on commit d40c7e9

Please sign in to comment.