mirror of
https://github.com/danbulant/Cosmos
synced 2026-05-19 20:39:01 +00:00
- plugged DriveInfo - added tests for DriveInfo - added to VFS a new method RegisterFilesystem()
23 lines
855 B
C#
23 lines
855 B
C#
using Cosmos.HAL.BlockDevice;
|
|
using Cosmos.System.FileSystem.FAT;
|
|
using System;
|
|
using System.Collections.Generic;
|
|
using System.Text;
|
|
|
|
namespace Cosmos.System.FileSystem
|
|
{
|
|
public class FatFileSystemFactory : FileSystemFactory
|
|
{
|
|
public override string Name { get => "FAT"; }
|
|
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="FatFileSystem"/> class.
|
|
/// </summary>
|
|
/// <param name="aDevice">The partition.</param>
|
|
/// <param name="aRootPath">The root path.</param>
|
|
/// <exception cref="Exception">FAT signature not found.</exception>
|
|
public override FileSystem Create(Partition aDevice, string aRootPath, long aSize) => new FatFileSystem(aDevice, aRootPath, aSize);
|
|
|
|
public override bool IsType(Partition aDevice) => FatFileSystem.IsDeviceFat(aDevice);
|
|
}
|
|
}
|