mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 12:30:32 +00:00
31 lines
No EOL
758 B
C#
31 lines
No EOL
758 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using Cosmos.IL2CPU.Plugs;
|
|
using Cosmos.System.FileSystem.VFS;
|
|
|
|
namespace SentinelKernel.System.Plugs.System.IO
|
|
{
|
|
[Plug(Target = typeof(Directory))]
|
|
public static class DirectoryImpl
|
|
{
|
|
private static string mCurrentDirectory = string.Empty;
|
|
|
|
public static string GetCurrentDirectory()
|
|
{
|
|
return mCurrentDirectory;
|
|
}
|
|
|
|
public static void SetCurrentDirectory(string aPath)
|
|
{
|
|
mCurrentDirectory = aPath;
|
|
}
|
|
|
|
public static bool Exists(string aPath)
|
|
{
|
|
return VFSManager.DirectoryExists(aPath);
|
|
}
|
|
}
|
|
} |