16 lines
380 B
JavaScript
16 lines
380 B
JavaScript
"use strict";
|
|
exports.__esModule = true;
|
|
exports.touch = void 0;
|
|
function touch(args, curdir, socket) {
|
|
var buf = "";
|
|
if (args.length == 0) {
|
|
buf += "touch: missing operand\n";
|
|
}
|
|
else {
|
|
curdir[socket.id][args[0]] = "";
|
|
buf += "File " + args[0] + " created\n";
|
|
}
|
|
return buf;
|
|
}
|
|
exports.touch = touch;
|
|
//# sourceMappingURL=touch.js.map
|