Exemple #1
0
        public ISO9660Directory(ISO9660FileSystem fileSystem, ISO9660Directory parent, Disk.ISO9660.DirectoryRecord record)
            : base(fileSystem, parent, record.FileIdentifier.length > 0 ? (FOS_System.String)record.FileIdentifier.Split(';')[0] : "")
        {
            TheDirectoryRecord = record;

            _theFile = new ISO9660File(fileSystem, parent, record) { IsDirectoryFile = true };
        }
Exemple #2
0
        public ISO9660Directory(ISO9660FileSystem fileSystem, ISO9660Directory parent, Disk.ISO9660.DirectoryRecord record)
            : base(fileSystem, parent, record.FileIdentifier.length > 0 ? (FOS_System.String)record.FileIdentifier.Split(';')[0] : "")
        {
            TheDirectoryRecord = record;

            _theFile = new ISO9660File(fileSystem, parent, record)
            {
                IsDirectoryFile = true
            };
        }
Exemple #3
0
 /// <summary>
 /// Initializes a new ISO9660 file stream for the specified file.
 /// </summary>
 /// <param name="aFile">The file to create a stream to.</param>
 /// <param name="ignoreFileSize">Whether to ignore the file size or not. True for directories.</param>
 public ISO9660FileStream(ISO9660File aFile)
     : base(aFile)
 {
     if (TheISO9660File == null)
     {
         ExceptionMethods.Throw(new Exception("Could not create ISO9660FileStream. Specified file object was null!"));
     }
 }