public static FileSystem ReadFileSystem(Volume volume) { NTFSFileSystem ntfs = new NTFSFileSystem(volume); if (ntfs.IsValidAndSupported) { return(ntfs); } return(null); }
public static void FS() { FileSystem fs = new NTFSFileSystem(); var fsentity = fs.Find("somepath"); // if not found if (fsentity == null) { // create under root fs.CreateDir(null, "ee"); } // repeat the same for fat32. Creating file system could be in factory fs = new Fat32FileSystem(); fsentity = fs.Find("somepath"); // if not found if (fsentity == null) { // create under root fs.CreateDir(null, "ee"); } }