Dropped the initial commit for this work due to a large file. Had to do some cleanup from a bad merge.
This commit is contained in:
parent
931ecb1437
commit
f63c38ac23
6 changed files with 9 additions and 7 deletions
|
|
@ -95,7 +95,7 @@ namespace API.Services
|
|||
/// Deletes all files within the directory, then the directory itself.
|
||||
/// </summary>
|
||||
/// <param name="directoryPath"></param>
|
||||
public void ClearAndDeleteDirectory(string directoryPath)
|
||||
public static void ClearAndDeleteDirectory(string directoryPath)
|
||||
{
|
||||
DirectoryInfo di = new DirectoryInfo(directoryPath);
|
||||
|
||||
|
|
@ -109,7 +109,7 @@ namespace API.Services
|
|||
/// </summary>
|
||||
/// <param name="directoryPath"></param>
|
||||
/// <returns></returns>
|
||||
public void ClearDirectory(string directoryPath)
|
||||
public static void ClearDirectory(string directoryPath)
|
||||
{
|
||||
var di = new DirectoryInfo(directoryPath);
|
||||
if (!di.Exists) return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue