feat: #266
This commit is contained in:
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user