"use strict";
var fs = require("fs");

var getSavePath = function(dir) {
  var homeDir = process.env.HOMEPATH || process.env.HOME;
  if(!getSavePath.hasMkdir) {
    try {
      fs.mkdirSync(homeDir + "/.anyfetch-file-watcher/");
    }
    catch(err) {}
    getSavePath.hasMkdir = true;
  }
  return homeDir + "/.anyfetch-file-watcher/" + dir.trim().replace(/(\/|\\)/g, '');
};
getSavePath.hasMkdir = false;


var saveCursor = function(dir, newCursor, cb) {
  fs.writeFile(getSavePath(dir), JSON.stringify(newCursor), function(err) {
    cb(err);
  });
};

module.exports = saveCursor;
module.exports.getSavePath = getSavePath;

@@ -514,40 +514,10 @@
 r), 
-function(err) %7B%0A    cb(err);%0A  %7D
+cb
 );%0A%7D

fix cb error