You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Recursively check the path length of all files in a directory.
40
+
* @param {string} dir - The directory to check for path lengths
41
+
* @returns {boolean}
42
+
*/
21
43
functioncheckPathLength(dir){
22
44
constfiles=readdirSync(dir);
23
45
lethasError=false;
@@ -32,7 +54,7 @@ function checkPathLength(dir) {
32
54
}elseif(IS_GITHUB_ACTIONS){
33
55
console.error(`::error file=${mapFileToSourcePath(filePath)},title=Path exceeds ${MAX_PATH_LENGTH} characters::Paths should not be longer than ${MAX_PATH_LENGTH} characters to support WIN32 systems. The file ${filePath} exceeds that with ${filePath.length-MAX_PATH_LENGTH} characters.`);
34
56
}else{
35
-
console.error(`Path exceeds maximum length of ${MAX_PATH_LENGTH} characters: ${FILE_PATH_COLOR}`,filePath,filePath.length-MAX_PATH_LENGTH);
0 commit comments