private Map < FileInfo , FileInfo > getCopyToMap ( ) { final Map < FileInfo , FileInfo > copyToMap = new HashMap <> ( ) ; if ( forceUnique ) { forceUniqueFilter . copyToMap . forEach ( ( dstFi , srcFi ) -> { job . add ( dstFi ) ; copyToMap . put ( dstFi , srcFi ) ; } ) ; } for ( final Map . Entry < URI , URI > e : reader . getCopyToMap ( ) . entrySet ( ) ) { final URI target = job . tempDirURI . relativize ( e . getKey ( ) ) ; final FileInfo targetFi = job . getFileInfo ( target ) ; final URI source = job . tempDirURI . relativize ( e . getValue ( ) ) ; final FileInfo sourceFi = job . getFileInfo ( source ) ; // Filter when copy-to was ignored (so target is not in job), // or where target is used directly if ( targetFi == null || ( targetFi != null && targetFi . src != null ) ) { continue ; } copyToMap . put ( targetFi , sourceFi ) ; } return copyToMap ; }
Get copy - to map based on map processing .