public boolean isTemporaryPath ( String path ) { for ( String tempPath : tempIdentifiers ) { String [ ] tempPathComponents = tempPath . split ( "/" ) ; if ( tempPathComponents . length > 0 && path != null && path . contains ( tempPathComponents [ 0 ] . replace ( "ID" , "" ) ) ) { return true ; } } return false ; }
Inspect the path and return true if path contains reserved _temporary or the first entry from fs . stocator . temp . identifier if provided