You cna now cd in dir that only contain text files.

This commit is contained in:
Olivier Gagnon 2021-05-05 19:09:14 -04:00
parent cedac23dfa
commit a10100bf60

@ -965,7 +965,8 @@ let Terminal = {
}
const server = Player.getCurrentServer();
if(!server.scripts.some(script => script.filename.startsWith(evaledDir))) {
if(!server.scripts.some(script => script.filename.startsWith(evaledDir)) &&
!server.textFiles.some(file => file.fn.startsWith(evaledDir))) {
postError("Invalid path. Failed to change directories");
return;
}