Open WizzieP opened 9 years ago
@WizzieP: This occurs because existsSync
has been depreciated. You can use these changes to get the build to work.
#function to check if the path exist
fileExists = (filePath)->
try
fs.lstatSync filePath
true
catch err
if err.code is 'ENOENT'
false
# Creates any elements of the dirname of the given path that do not exist.
ensurePathExists = (the_path) ->
parts = the_path.split('/').slice 0, -1
current_path = '.'
for part in parts
current_path += '/' + part
fs.mkdirSync(current_path, 0o755) if not fileExists current_path
Node v0.12
Both Win8.1 and Linux