Skip to content
Snippets Groups Projects
Commit dc481aeb authored by Lloyd Hilaiel's avatar Lloyd Hilaiel
Browse files

support node 0.8.x

parent 227a577c
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,7 @@ function flush() {
function sync() {
// the database not existing yet just means its empty, don't log an error
if (path.existsSync(dbPath)) {
if (fs.existsSync(dbPath)) {
try {
db = JSON.parse(fs.readFileSync(dbPath));
......
......@@ -66,8 +66,8 @@ exports.abide = function (options) {
default_locale = localeFrom(options.default_lang);
mo_cache[l] = {
mo_exists: path.existsSync(mo_file_path(l)),
json_exists: path.existsSync(json_file_path(l)),
mo_exists: fs.existsSync(mo_file_path(l)),
json_exists: fs.existsSync(json_file_path(l)),
gt: null
};
if (l !== debug_locale) {
......
......@@ -25,7 +25,7 @@ var log_path = path.join(configuration.get('var_path'), 'log');
// simple inline function for creation of dirs
function mkdir_p(p) {
if (!path.existsSync(p)) {
if (!fs.existsSync(p)) {
mkdir_p(path.dirname(p));
fs.mkdirSync(p, "0755");
}
......
......@@ -33,7 +33,7 @@ var LOGGER;
// simple inline function for creation of dirs
function mkdir_p(p) {
if (!path.existsSync(p)) {
if (!fs.existsSync(p)) {
mkdir_p(path.dirname(p));
fs.mkdirSync(p, "0755");
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment