Пример #1
0
        private void SafeExtractInfo(IsoFileCommander fileCommander, IsoTableEntryInfo info, Action <long> progressIncr)
        {
            try
            {
                if (info.CompressedSize < 1)
                {
                    return;
                }

                fileCommander.ExtractFile(info, Path.Combine(@"W:\FFX", info.GetRelativePath()));
            }
            catch (Exception ex)
            {
                Log.Error(ex, "Failed to extract file '{0}'", info.GetFileName());
            }
            finally
            {
                progressIncr(1);
            }
        }