still working on auto-mode
This commit is contained in:
parent
8fc1739a34
commit
0b3e8e8523
20 changed files with 151 additions and 3 deletions
|
@ -4,6 +4,7 @@ using System.Net.Http;
|
|||
using System.IO;
|
||||
using System.Windows.Markup;
|
||||
using System.Windows;
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace h_encore_auto
|
||||
{
|
||||
|
@ -60,5 +61,13 @@ namespace h_encore_auto
|
|||
Util.DeleteDirectory(Ref.tempDir);
|
||||
System.Environment.Exit(0);
|
||||
}
|
||||
public static bool IsDirectoryEmpty(string path)
|
||||
{
|
||||
IEnumerable<string> items = Directory.EnumerateFileSystemEntries(path);
|
||||
using (IEnumerator<string> en = items.GetEnumerator())
|
||||
{
|
||||
return !en.MoveNext();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Reference in a new issue