private void clearObsoleteFiles ( Transfer item ) { Transfer httpMeta = item . getSiblingMeta ( HTTP_METADATA_EXT ) ; try { httpMeta . delete ( ) ; } catch ( IOException e ) { logger . warn ( "Failed to delete {}" , httpMeta . getResource ( ) ) ; } }
Clear obsolete files after a meta is generated . This may be http download metadata etc .