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"; } /// /// Initializes a new instance of the class. /// /// The partition. /// The root path. /// FAT signature not found. public override FileSystem Create(Partition aDevice, string aRootPath, long aSize) => new FatFileSystem(aDevice, aRootPath, aSize); public override bool IsType(Partition aDevice) => FatFileSystem.IsDeviceFat(aDevice); } }