/// <summary> /// Formats the specified partition stream. /// </summary> /// <param name="partitionStream">The partition stream.</param> /// <param name="options">The options.</param> /// <param name="volumeLabel">The volume label.</param> /// <returns></returns> public static ExFatPathFilesystem Format(Stream partitionStream, ExFatFormatOptions options, string volumeLabel = null) { var entryFilesystem = ExFatEntryFilesystem.Format(partitionStream, options, volumeLabel); return(new ExFatPathFilesystem(entryFilesystem)); }
/// <summary> /// Initializes a new instance of the <see cref="ExFatEntryInformation"/> class. /// </summary> /// <param name="entryFilesystem">The entry filesystem.</param> /// <param name="entry">The entry.</param> /// <param name="cleanPath">The path.</param> internal ExFatEntryInformation(ExFatEntryFilesystem entryFilesystem, ExFatFilesystemEntry entry, string cleanPath) { Path = cleanPath; _entryFilesystem = entryFilesystem; _entry = entry; }
/// <summary> /// Initializes a new instance of the <see cref="ExFatPathFilesystem" /> class. /// </summary> /// <param name="entryFilesystem">The entry filesystem.</param> /// <param name="pathSeparators">The path separators.</param> public ExFatPathFilesystem(ExFatEntryFilesystem entryFilesystem, char[] pathSeparators = null) { _entryFilesystem = entryFilesystem; PathSeparators = pathSeparators ?? DefaultSeparators; _rootNode = new Node(_entryFilesystem.RootDirectory, this); }