blob: 0dcffb767b01adba69dcd5eb127762d713b91c96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var File = loadExtension("qbs.File")
function createCommand(filePaths) {
var cmd = new JavaScriptCommand();
cmd.description = "Create another empty file";
cmd.filePaths = filePaths;
cmd.sourceCode = function() {
File.copy(filePaths[0], filePaths[1]);
};
return cmd;
}
|