44 lines
633 B
C#
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;
|
|
}
|
|
}
|
|
}
|