Comparing version 0.4.1 to 0.4.2
@@ -75,5 +75,13 @@ var fs = require('fs'); | ||
Filesystem.prototype.getNode = function(p) { | ||
var node = this.searchNodeFromDirectory(path.dirname(p)); | ||
var name = path.basename(p); | ||
if (name) | ||
return node.files[name]; | ||
else | ||
return node; | ||
} | ||
Filesystem.prototype.getFile = function(p, followLinks) { | ||
var name = path.basename(p); | ||
var info = this.searchNodeFromDirectory(path.dirname(p)).files[name]; | ||
var info = this.getNode(p); | ||
if ('undefined' === typeof followLinks) | ||
@@ -80,0 +88,0 @@ followLinks = true; |
@@ -5,3 +5,3 @@ { | ||
"description": "Creating atom-shell app packages", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"bin": { | ||
@@ -8,0 +8,0 @@ "asar": "bin/asar" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
27626
474