ASCU_ALL/SupportClasses/Directory.cs
2020-09-04 12:49:15 +05:00

44 lines
633 B
C#

using System;
using System.IO;
namespace SupportClasses
{
public static class Direct
{
public static char Slash
{
get
{
if (Environment.OSVersion.Platform == PlatformID.Unix)
return '/';
else
return '\\';
}
}
private static string tempDir = null;
public static string TempDir
{
get
{
if (String.IsNullOrEmpty(tempDir))
{
tempDir = Directory.GetCurrentDirectory() + Direct.Slash + "temp";
Directory.CreateDirectory(tempDir);
}
return tempDir;
}
set
{
}
}
public static bool ClearTempDir(DateTime dtCreation)
{
return true;
}
}
}