kopia lustrzana https://github.com/c9/core
remove unused href from readdir results
rodzic
b909151a89
commit
ab85ed0368
|
@ -42,13 +42,6 @@ module.exports = function setup(mount, vfs, mountOptions) {
|
|||
output.readable = true;
|
||||
var first = true;
|
||||
input.on("data", function (entry) {
|
||||
if (path) {
|
||||
entry.href = path + entry.name;
|
||||
var mime = entry.linkStat ? entry.linkStat.mime : entry.mime;
|
||||
if (/(directory|folder)$/.test(mime)) {
|
||||
entry.href += "/";
|
||||
}
|
||||
}
|
||||
if (first) {
|
||||
output.emit("data", "[\n " + JSON.stringify(entry));
|
||||
first = false;
|
||||
|
|
Ładowanie…
Reference in New Issue