Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
var fs = require("fs");
var path = require("path");
var mkdirp = require("mkdirp");
var compiler = require("krl-compiler");
var version_key = [
require("pico-engine-core/package.json").version,
require("krl-compiler/package.json").version
].join("-");
var fsExist = function(file_path, callback){
fs.stat(file_path, function(err, stats){
if(err){
if(err.code === "ENOENT"){
return callback(undefined, false);
}else{
return callback(err);
}
}
callback(undefined, true);
});
};
var _ = require('lodash')
var fs = require('fs')
var util = require('util')
var path = require('path')
var mkdirp = require('mkdirp')
var compiler = require('krl-compiler')
var versionKey = [
require('pico-engine-core/package.json').version,
require('krl-compiler/package.json').version
].join('-')
var fsExist = function (filePath, callback) {
fs.stat(filePath, function (err, stats) {
if (err) {
if (err.code === 'ENOENT') {
return callback(null, false)
} else {
return callback(err)
}
}
callback(null, true)
})
}