CliSite/commands/touch.js

16 lines
380 B
JavaScript
Raw Permalink Normal View History

2022-06-12 09:38:38 +02:00
"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