Skip to content

Commit

Permalink
GH-911: Delete vfs_cache recursively (#915)
Browse files Browse the repository at this point in the history
Resolves #911
Resolves NCLSUP-959
  • Loading branch information
dwalluck authored Jan 17, 2024
1 parent 559bd4b commit f660e9a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@

import org.apache.commons.collections4.MultiValuedMap;
import org.apache.commons.collections4.multimap.HashSetValuedHashMap;
import org.apache.commons.io.FileUtils;
import org.apache.commons.vfs2.AllFileSelector;
import org.apache.commons.vfs2.FileObject;
import org.apache.commons.vfs2.FileSystem;
Expand Down Expand Up @@ -296,8 +297,7 @@ private void cleanupVfsCache() throws IOException {

if (tmpDir != null) {
File vfsCacheDir = new File(tmpDir, "vfs_cache");

Files.deleteIfExists(vfsCacheDir.toPath());
FileUtils.deleteDirectory(vfsCacheDir);
}
}

Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -62,10 +62,10 @@
</scm>

<properties>
<koji.hub.url/>
<koji.web.url/>
<koji.hub.url></koji.hub.url>
<koji.web.url></koji.web.url>
<mavenVersion>3.5.4</mavenVersion>
<pnc.url/>
<pnc.url></pnc.url>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<skipITs>true</skipITs>
<version.ch.qos.logback>1.4.14</version.ch.qos.logback>
Expand Down Expand Up @@ -1102,7 +1102,7 @@ limitations under the License.]]></inlineHeader>
<requireMavenVersion>
<version>${mavenVersion}</version>
</requireMavenVersion>
<requireSameVersions/>
<requireSameVersions></requireSameVersions>
</rules>
</configuration>
</execution>
Expand Down

0 comments on commit f660e9a

Please sign in to comment.