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

View File

@ -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){