mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
47 lines
1.3 KiB
C#
47 lines
1.3 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.IO;
|
|
using Cosmos.HAL.BlockDevice;
|
|
using Cosmos.System.FileSystem.FAT;
|
|
using Cosmos.System.FileSystem.Listing;
|
|
|
|
namespace Cosmos.System.FileSystem
|
|
{
|
|
public abstract class FileSystem
|
|
{
|
|
protected FileSystem(Partition aDevice, string aRootPath, long aSize)
|
|
{
|
|
Device = aDevice;
|
|
RootPath = aRootPath;
|
|
Size = aSize;
|
|
}
|
|
|
|
public abstract void DisplayFileSystemInfo();
|
|
|
|
public abstract List<DirectoryEntry> GetDirectoryListing(DirectoryEntry baseDirectory);
|
|
|
|
public abstract DirectoryEntry GetRootDirectory();
|
|
|
|
public abstract DirectoryEntry CreateDirectory(DirectoryEntry aParentDirectory, string aNewDirectory);
|
|
|
|
public abstract DirectoryEntry CreateFile(DirectoryEntry aParentDirectory, string aNewFile);
|
|
|
|
public abstract void DeleteDirectory(DirectoryEntry aPath);
|
|
|
|
public abstract void DeleteFile(DirectoryEntry aPath);
|
|
|
|
protected Partition Device { get; }
|
|
|
|
public string RootPath { get; }
|
|
|
|
public long Size { get; }
|
|
|
|
public abstract long AvailableFreeSpace { get; }
|
|
|
|
public abstract long TotalFreeSpace { get; }
|
|
|
|
public abstract string Type { get; }
|
|
|
|
public abstract string Label { get; set; }
|
|
}
|
|
}
|