We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 500466d commit 0a47194Copy full SHA for 0a47194
src/main/java/org/entityc/compiler/repository/RepositoryCache.java
@@ -99,10 +99,13 @@ public void invalidateCacheDirectory(MTRepository repository) {
99
}
100
String fullPath = getBaseCacheDirectory().getAbsolutePath() + File.separator + getRepositoryCachePath(
101
repository);
102
- try {
103
- FileUtils.cleanDirectory(new File(fullPath));
104
- } catch (IOException e) {
105
- ECLog.logWarning("Unable to remove cache directory: " + fullPath);
+ File file = new File(fullPath);
+ if (file.exists()) {
+ try {
+ FileUtils.cleanDirectory(file);
106
+ } catch (IOException e) {
107
+ ECLog.logWarning("Unable to remove cache directory: " + fullPath);
108
+ }
109
110
111
0 commit comments