mirror of
https://github.com/github/codeql-action.git
synced 2026-04-29 10:28:52 +00:00
Update get-folder-size
This commit is contained in:
+2
-2
@@ -1,7 +1,6 @@
|
||||
import * as fs from "fs";
|
||||
import * as os from "os";
|
||||
import * as path from "path";
|
||||
import { promisify } from "util";
|
||||
|
||||
import * as core from "@actions/core";
|
||||
import * as exec from "@actions/exec/lib/exec";
|
||||
@@ -831,7 +830,8 @@ export async function tryGetFolderBytes(
|
||||
quiet: boolean = false,
|
||||
): Promise<number | undefined> {
|
||||
try {
|
||||
return await promisify<string, number>(getFolderSize)(cacheDir);
|
||||
// tolerate some errors since we're only estimating the size
|
||||
return await getFolderSize.loose(cacheDir);
|
||||
} catch (e) {
|
||||
if (!quiet || logger.isDebug()) {
|
||||
logger.warning(
|
||||
|
||||
Reference in New Issue
Block a user