C# Class Staticity.IOHelper

Mostrar archivo Open project: JeremySkinner/Staticity

Public Methods

Method Description
CopyFilesRecursively ( DirectoryInfo source, DirectoryInfo target ) : void
DeleteDirectory ( string path ) : void

Private Methods

Method Description
DeleteFile ( string path ) : void
SetAttributesNormal ( DirectoryInfo dir ) : void

The Delete() method will fail with UnauthorizedAccessException if any files in the directory tree have the read-only flag. Delete() cannot delete anything with read-only flag even if the user running the application has priviliges to delete these files.

Method Details

CopyFilesRecursively() public static method

public static CopyFilesRecursively ( DirectoryInfo source, DirectoryInfo target ) : void
source System.IO.DirectoryInfo
target System.IO.DirectoryInfo
return void

DeleteDirectory() public static method

public static DeleteDirectory ( string path ) : void
path string
return void