private void checkVersion ( final Future < Boolean > aFuture ) { final String versionFilePath = getVersionFilePath ( ) ; myFileSystem . exists ( versionFilePath , result -> { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( MessageCodes . PT_DEBUG_007 , versionFilePath ) ; } if ( result . succeeded ( ) ) { if ( result . result ( ) ) { if ( LOGGER . isDebugEnabled ( ) ) { LOGGER . debug ( MessageCodes . PT_DEBUG_008 , versionFilePath ) ; } checkPrefix ( aFuture ) ; } else { aFuture . complete ( ! result . result ( ) ) ; } } else { aFuture . fail ( result . cause ( ) ) ; } } ) ; }
Checks that Pairtree version file exists .