CubePdf.Converter.Sweep C# (CSharp) Method

Sweep() private method

不要なファイルやディレクトリを削除します。
private Sweep ( UserSetting setting ) : void
setting UserSetting
return void
        private void Sweep(UserSetting setting)
        {
            try
            {
                var work = Path.WorkingDirectory;
                if (IoEx.Directory.Exists(work))
                {
                    IoEx.Directory.Delete(work, true);
                    AddMessage(string.Format("DeleteWorkingDirectory: {0}", work));
                }

                if (setting.DeleteOnClose && IoEx.File.Exists(setting.InputPath))
                {
                    IoEx.File.Delete(setting.InputPath);
                    AddMessage(string.Format("DeleteOnClose: {0}", setting.InputPath));
                }
            }
            catch (Exception err) { AddMessage(err, true); }
        }