private static void deleteEveryIn ( DirectoryStream < Path > caches ) { for ( Path notActualCache : caches ) { LOGGER . debug ( "Deleting redundant cache dir {}" , notActualCache ) ; try { FileUtils . deleteDirectory ( notActualCache . toFile ( ) ) ; } catch ( IOException e ) { LOGGER . error ( "Can't delete cache dir <{}>" , notActualCache , e ) ; } } }
Removes directories with caches