catch (IOException)
{
return false;
}
finally
{
if (fs != null)
fs.Close();
}
}
#endregion
private static volatile object _lock = true;
static void onFileSystem_Changed(object sender, FileSystemEventArgs e)
{
lock (_lock)
{
Console.ForegroundColor = ConsoleColor.DarkGray;
Console.Write("[");
Console.Write(DateTime.Now.ToString("HH:mm:ss"));
Console.Write("] ");
switch (e.ChangeType.ToString().ToLower())
{
case "created":
//while (!IsFileReady(e.FullPath))
//{
// if (!File.Exists(e.FullPath))
// return;










