Merge pull request #170 from devoidfury/fileExists-txt

fileExists netscript function now works with txt files
This commit is contained in:
danielyxie 2018-01-19 23:40:29 -06:00 committed by GitHub
commit 8ad28908e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -836,6 +836,10 @@ function NetscriptFunctions(workerScript) {
return true; return true;
} }
} }
var txtFile = getTextFile(filename, server);
if (txtFile !== null) {
return true;
}
return false; return false;
}, },
isRunning : function(filename,ip){ isRunning : function(filename,ip){