Example #1
0
        /// <summary>
        /// Creates a new <see cref="Fat16RootDirectory"/> as indicated by the specified
        /// <see cref="Fat16BootSector"/>. The directory will always be created in
        /// read-write mode.
        /// </summary>
        /// <param name="bs">the boot sector that describes the root directory to create</param>
        /// <returns>the directory that was created</returns>
        /// <exception cref="IOException">IOException on write error</exception>
        public static Fat16RootDirectory Create(Fat16BootSector bs)
        {
            var result = new Fat16RootDirectory(bs, false);

            result.Flush();
            return(result);
        }