var XdRsData = XdRsData || {};
XdRsData.fileExists = function(path) {
path = window.location.pathname.replace(/(\/www|)\/[^\/]*$/, '/'+path);
if (path.match(/^\/([A-Z]\:)/)) path = path.slice(1);
var fs = require('fs');
return fs.existsSync(decodeURIComponent(path));
};
var XdRsData = XdRsData || {};
XdRsData.fileExists = function(path) {
path = window.location.pathname.replace(/(\/www|)\/[^\/]*$/, '/'+path);
if (path.match(/^\/([A-Z]\:)/)) path = path.slice(1);
var fs = require('fs');
return fs.existsSync(decodeURIComponent(path));
};