20 lines
481 B
JavaScript
20 lines
481 B
JavaScript
|
"use strict";
|
||
|
exports.__esModule = true;
|
||
|
exports.append = void 0;
|
||
|
function append(args, curdir) {
|
||
|
var buf = "";
|
||
|
if (args.length == 0) {
|
||
|
buf += "append: missing operand\n";
|
||
|
}
|
||
|
else {
|
||
|
if (curdir[args[0]] == undefined) {
|
||
|
curdir[args[0]] = "";
|
||
|
}
|
||
|
for (var i = 1; i < args.length; i++) {
|
||
|
curdir[args[0]] += args[i] + "\n";
|
||
|
}
|
||
|
}
|
||
|
return buf;
|
||
|
}
|
||
|
exports.append = append;
|
||
|
//# sourceMappingURL=append.js.map
|