mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
- Make DirectoryInfo work - Refactored FAT TestRunner in a similar way to the BCL one - Bugfix: Path.GetTempPath() did not returned a complete path - Added to VFS "naive" support to Get / Set file attributes (for now only Get is supported) - Added more debug logs
41 lines
1.3 KiB
C#
41 lines
1.3 KiB
C#
using System.Collections.Generic;
|
|
using Cosmos.System.FileSystem.Listing;
|
|
using System.IO;
|
|
|
|
namespace Cosmos.System.FileSystem.VFS
|
|
{
|
|
public abstract class VFSBase
|
|
{
|
|
public abstract void Initialize();
|
|
|
|
public abstract DirectoryEntry CreateFile(string aPath);
|
|
|
|
public abstract DirectoryEntry CreateDirectory(string aPath);
|
|
|
|
public abstract bool DeleteFile(DirectoryEntry aPath);
|
|
|
|
public abstract bool DeleteDirectory(DirectoryEntry aPath);
|
|
|
|
public abstract DirectoryEntry GetDirectory(string aPath);
|
|
|
|
public abstract DirectoryEntry GetFile(string aPath);
|
|
|
|
public abstract List<DirectoryEntry> GetDirectoryListing(string aPath);
|
|
|
|
public abstract List<DirectoryEntry> GetDirectoryListing(DirectoryEntry aEntry);
|
|
|
|
public abstract DirectoryEntry GetVolume(string aVolume);
|
|
|
|
public abstract List<DirectoryEntry> GetVolumes();
|
|
|
|
public abstract FileAttributes GetFileAttributes(string aPath);
|
|
|
|
public abstract void SetFileAttributes(string aPath, FileAttributes fileAttributes);
|
|
|
|
public static char DirectorySeparatorChar { get { return '\\'; } }
|
|
|
|
public static char AltDirectorySeparatorChar { get { return '/'; } }
|
|
|
|
public static char VolumeSeparatorChar { get { return ':'; } }
|
|
}
|
|
}
|