Skip to content

Commit

Permalink
chore: print unity cache size (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
marianogoldman authored Aug 26, 2024
1 parent b8b705b commit da7db6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion consumer-server/src/logic/conversion-task.ts
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ export async function executeConversion(
logger.debug(`Full project size ${getFolderSize($PROJECT_PATH)}`)
logger.debug(`Filesystem folders over 1GB breakdown`)
printLargeFolders(getRootFolder())
printFolderSizes('/root/.cache/unity3d', logger)
}

/**
Expand Down Expand Up @@ -425,7 +426,6 @@ function getFolderSize(dirPath: string): number {
* @param depth - The max depth of folder size logging.
*/
function printFolderSizes(dirPath: string, logger: any, depth: number = 0): void {
logger.debug(`Folder size depth: ${depth}`)
const stats = fs.statSync(dirPath)

if (stats.isDirectory()) {
Expand Down

0 comments on commit da7db6b

Please sign in to comment.