runtime/fs.js in opal-0.3.6 vs runtime/fs.js in opal-0.3.9

- old
+ new

@@ -100,11 +100,11 @@ if (!extname || extname === '.') return ''; else return extname; }; Fs.exist_p = function(path) { - return opal.loader.factories[file_expand_path(path)] ? true : false; + return Op.loader.factories[fs_expand_path(path)] ? true : false; }; /** Glob */ @@ -133,10 +133,10 @@ /** Turns a glob string into a regexp */ function fs_glob_to_regexp(glob) { if (typeof glob !== 'string') { - throw new Error("file_glob_to_regexp: glob must be a string"); + raise(eException, "file_glob_to_regexp: glob must be a string"); } // make sure absolute glob = fs_expand_path(glob); // console.log("full glob is: " + glob);