Comparing version 1.0.9 to 1.1.0
{ | ||
"name": "fsgod", | ||
"version": "1.0.9", | ||
"version": "1.1.0", | ||
"description": "Secure file sharing, hosting, and transfer", | ||
@@ -30,4 +30,7 @@ "main": "index.js", | ||
"document managment", | ||
"document" | ||
"document", | ||
"ssh", | ||
"sftp", | ||
"ftp" | ||
] | ||
} |
@@ -70,3 +70,2 @@ (function () { | ||
(function () { | ||
scansStarted++; | ||
fo.__getContentFromSrc(() => { | ||
@@ -83,4 +82,4 @@ scansFinished++; | ||
dir.type = 'directory'; | ||
dir.name = $fullPath.split(/[\\\/]/gi).reverse()[0]; | ||
dir.fullPath = $fullPath; | ||
dir.fullPath = path.resolve($fullPath); | ||
dir.name = dir.fullPath.split(/[\\\/]/gi).reverse()[0]; | ||
dir.content = []; | ||
@@ -101,6 +100,6 @@ dir.dev = $stat.dev; | ||
(function () { | ||
scansStarted++; | ||
fs.readdir(dir.fullPath, (err, items) => { | ||
if (err) throw err; | ||
items.forEach((item, index) => { | ||
scansStarted++; | ||
item = path.resolve(dir.fullPath, item); | ||
@@ -107,0 +106,0 @@ fs.stat(item, (err, stat) => { |
13213
206