mirror of
https://github.com/xpipe-io/xpipe.git
synced 2026-06-04 13:51:21 -04:00
Check for full file system for session file
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user