mirror of
https://github.com/Dark98/SliceBeam.git
synced 2026-07-03 00:38:53 +00:00
22 lines
530 B
Java
22 lines
530 B
Java
package ru.ytkab0bp.slicebeam.boot;
|
|
|
|
import java.io.File;
|
|
|
|
import ru.ytkab0bp.slicebeam.SliceBeam;
|
|
|
|
public class ClearModelCacheTask extends BootTask {
|
|
@SuppressWarnings("ResultOfMethodCallIgnored")
|
|
public ClearModelCacheTask() {
|
|
super(()->{
|
|
File cache = SliceBeam.getModelCacheDir();
|
|
if (cache.exists()) {
|
|
for (File f : cache.listFiles()) {
|
|
f.delete();
|
|
}
|
|
}
|
|
});
|
|
nonCritical = true;
|
|
onWorker();
|
|
}
|
|
}
|