示例#1
0
        /// <summary>
        /// Gets the root directory entry for a volume in a file system.
        /// </summary>
        /// <param name="aFS">The file system containing the volume.</param>
        /// <returns>A directory entry for the volume.</returns>
        private DirectoryEntry GetVolume(FileSystem aFS)
        {
            Global.mFileSystemDebugger.SendInternal("--- CosmosVFS.GetVolume ---");

            if (aFS == null)
            {
                Global.mFileSystemDebugger.SendInternal("File system is null.");
                throw new ArgumentNullException(nameof(aFS));
            }

            return(aFS.GetRootDirectory());
        }
示例#2
0
 private DirectoryEntry GetVolume(FileSystem aFS)
 {
     return aFS.GetRootDirectory();
 }
示例#3
0
        /// <summary>
        /// Gets the root directory entry for a volume in a file system.
        /// </summary>
        /// <param name="aFS">The file system containing the volume.</param>
        /// <returns>A directory entry for the volume.</returns>
        private DirectoryEntry GetVolume(FileSystem aFS)
        {
            Global.mFileSystemDebugger.SendInternal("CosmosVFS.GetVolume:");

            if (aFS == null)
            {
                Global.mFileSystemDebugger.SendInternal("File system is null.");
                throw new ArgumentNullException(nameof(aFS));
            }

            return aFS.GetRootDirectory();
        }
示例#4
0
 public Directory GetVolume(Cosmos.System.FileSystem.FileSystem filesystem, string name)
 {
     return(filesystem.GetRootDirectory(name));
 }
示例#5
0
 private DirectoryEntry GetVolume(FileSystem aFS)
 {
     return(aFS.GetRootDirectory());
 }