//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: public void moveMigratedFiles(org.neo4j.io.layout.DatabaseLayout migrationLayout, org.neo4j.io.layout.DatabaseLayout directoryLayout, String versionToUpgradeFrom, String versionToMigrateTo) throws java.io.IOException
        public override void MoveMigratedFiles(DatabaseLayout migrationLayout, DatabaseLayout directoryLayout, string versionToUpgradeFrom, string versionToMigrateTo)
        {
            if (_nativeLabelScanStoreMigrated)
            {
                File nativeLabelIndex = migrationLayout.LabelScanStore();
                MoveNativeIndexFile(directoryLayout, nativeLabelIndex);
                DeleteLuceneLabelIndex(GetLuceneStoreDirectory(directoryLayout));
            }
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void moveNativeIndexFile(org.neo4j.io.layout.DatabaseLayout storeStructure, java.io.File nativeLabelIndex) throws java.io.IOException
        private void MoveNativeIndexFile(DatabaseLayout storeStructure, File nativeLabelIndex)
        {
            Optional <FileHandle> nativeIndexFileHandle = _fileSystem.streamFilesRecursive(nativeLabelIndex).findFirst();

            if (nativeIndexFileHandle.Present)
            {
                nativeIndexFileHandle.get().rename(storeStructure.LabelScanStore());
            }
        }
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private boolean isNativeLabelScanStoreMigrationRequired(org.neo4j.io.layout.DatabaseLayout directoryStructure) throws java.io.IOException
        private bool IsNativeLabelScanStoreMigrationRequired(DatabaseLayout directoryStructure)
        {
            return(_fileSystem.streamFilesRecursive(directoryStructure.LabelScanStore()).noneMatch(Predicates.alwaysTrue()));
        }