コード例 #1
0
//JAVA TO C# CONVERTER WARNING: Method 'throws' clauses are not available in C#:
//ORIGINAL LINE: private void restoreDatabaseFiles(org.neo4j.kernel.impl.transaction.log.files.LogFiles backupLogFiles, java.io.File[] files) throws java.io.IOException
        private void RestoreDatabaseFiles(LogFiles backupLogFiles, File[] files)
        {
            if (files != null)
            {
                foreach (File file in files)
                {
                    if (file.Directory)
                    {
                        File destination = new File(_toDatabaseDir, file.Name);
                        _fs.mkdirs(destination);
                        _fs.copyRecursively(file, destination);
                    }
                    else
                    {
                        _fs.copyToDirectory(file, backupLogFiles.IsLogFile(file) ? _transactionLogsDirectory : _toDatabaseDir);
                    }
                }
            }
        }