Revert "Fix some stuff with ls() and cat"

This commit is contained in:
danielyxie
2018-02-16 15:03:16 -06:00
committed by GitHub
parent d37e8f1d5f
commit 1f5ab50b79
4 changed files with 5 additions and 24 deletions
-10
View File
@@ -834,16 +834,6 @@ function NetscriptFunctions(workerScript) {
}
}
for (var i = 0; i < server.textFiles.length; i++) {
if (filter) {
if (server.textFiles[i].fn.includes(filter)) {
allFiles.push(server.textFiles[i].fn);
}
} else {
allFiles.push(server.textFiles[i].fn);
}
}
//Sort the files alphabetically then print each
allFiles.sort();
return allFiles;