public boolean isSameFile ( JimfsPath path , FileSystemView view2 , JimfsPath path2 ) throws IOException { if ( ! isSameFileSystem ( view2 ) ) { return false ; } store . readLock ( ) . lock ( ) ; try { File file = lookUp ( path , Options . FOLLOW_LINKS ) . fileOrNull ( ) ; File file2 = view2 . lookUp ( path2 , Options . FOLLOW_LINKS ) . fileOrNull ( ) ; return file != null && Objects . equals ( file , file2 ) ; } finally { store . readLock ( ) . unlock ( ) ; } }
Returns whether or not the two given paths locate the same file . The second path is located using the given view rather than this file view .