This commit is contained in:
hyb1996
2018-01-23 14:37:12 +08:00
parent bb6d44e696
commit af2c3940ed
4 changed files with 30 additions and 6 deletions

View File

@@ -1,8 +1,10 @@
module.exports = function(__runtime__, scope){
var files = Object.create(com.stardust.autojs.runtime.api);
files.cwd = function(){
return scope.engines.myEngine().cwd();
var fs = __runtime__.files;
var files = Object.create(fs);
files.join = function(base){
var paths = Array.prototype.slice.call(arguments, 0);
return fs.join(base, paths);
}
scope.files = files;
scope.open = function(path, mode, encoding, bufferSize){