Check for full file system for session file

This commit is contained in:
crschnick
2026-05-31 00:47:50 +00:00
parent e7c95b06bc
commit b7ae5ff634

View File

@@ -58,7 +58,13 @@ public class ShellTemp {
var newSession = !sc.view().fileExists(sessionFile);
if (newSession) {
clearTemp(sc);
sc.view().touch(sessionFile);
try {
sc.view().touch(sessionFile);
} catch (ProcessOutputException pex) {
if (!pex.getOutput().toLowerCase().contains("no space left on device")) {
throw pex;
}
}
}
}
}