Relative path might be missing

This commit is contained in:
Kevin Sawicki
2014-07-07 16:03:03 -07:00
parent fa6e84415b
commit 484a516bd6

View File

@@ -6,7 +6,10 @@ module.exports = (grunt) ->
longPaths = []
grunt.file.recurse shellAppDir, (absolutePath, rootPath, relativePath, fileName) ->
fullPath = path.join(relativePath, fileName)
if relativePath
fullPath = path.join(relativePath, fileName)
else
fullPath = fileName
longPaths.push(fullPath) if fullPath.length >= 200
longPaths.sort (longPath1, longPath2) -> longPath2.length - longPath1.length