Make dir in app folder

pull/1/head
unknown 6 years ago
parent 357dc18094
commit 8f08f76afe

@ -1 +1 @@
4f0bbfe8ac44b56784f7eeaa3cdef96609d6b97e
02ab5562f7a9f633d41e073aff759527ff59696c

@ -1 +1 @@
48781ba1f58e845d50aedda0cbff5881dfe0563f
1a68033c72e3e719a45c8165f48f4effb88b5e68

@ -9,6 +9,38 @@ namespace ZeroLevel.Services.FileSystem
{
public static class FSUtils
{
public static string GetAppLocalTemporaryDirectory()
{
var fn = Path.GetRandomFileName();
var folderName = Path.Combine(Configuration.BaseDirectory, "temp", fn);
if (false == Directory.Exists(folderName))
{
Directory.CreateDirectory(folderName);
}
return folderName;
}
public static string GetAppLocalTemporaryFile()
{
var fn = Path.GetRandomFileName();
var folderName = Path.Combine(Configuration.BaseDirectory, "temp");
if (false == Directory.Exists(folderName))
{
Directory.CreateDirectory(folderName);
}
return Path.Combine(folderName, fn);
}
public static string GetAppLocalDirectory(string folderName)
{
folderName = Path.Combine(Configuration.BaseDirectory, "temp", folderName);
if (false == Directory.Exists(folderName))
{
Directory.CreateDirectory(folderName);
}
return folderName;
}
/// <summary>
/// Задает права доступа к каталогу для учетной записи
/// </summary>

@ -1 +1 @@
340d67e3bacade13bef505a513fef7c6261dbf28
c7012002005514f37ffc568f2998758c453405e9

Loading…
Cancel
Save

Powered by TurnKey Linux.