Prizm.Main.Forms.ExternalFile.ExternalFilesViewModel.RemoveCopiedFilesIfError C# (CSharp) 메소드

RemoveCopiedFilesIfError() 개인적인 메소드

private RemoveCopiedFilesIfError ( ) : void
리턴 void
        private void RemoveCopiedFilesIfError()
        {
            foreach (KeyValuePair<string, string> kvp in FilesToAttach)
            {
                if (System.IO.File.Exists(Directories.TargetPath + kvp.Key))
                {
                    System.IO.File.Delete(Directories.TargetPath + kvp.Key);
                }
                if (System.IO.File.Exists(Directories.FilesToAttachFolder + kvp.Key))
                {
                    System.IO.File.Delete(Directories.FilesToAttachFolder + kvp.Key);
                }
            }
        }