2019-07-19 12:14:30 +01:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2019-07-19 16:20:58 +01:00
|
|
|
using System.Globalization;
|
2019-07-19 14:26:02 +01:00
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
2019-07-19 12:14:30 +01:00
|
|
|
using DiscImageChef.CommonTypes.Structs;
|
2019-07-19 14:26:02 +01:00
|
|
|
using DiscImageChef.Helpers;
|
2019-07-19 12:14:30 +01:00
|
|
|
|
|
|
|
|
namespace DiscImageChef.Filesystems.ISO9660
|
|
|
|
|
{
|
|
|
|
|
public partial class ISO9660
|
|
|
|
|
{
|
2019-07-19 16:20:58 +01:00
|
|
|
Dictionary<string, Dictionary<string, DecodedDirectoryEntry>> directoryCache;
|
|
|
|
|
|
2019-07-19 15:44:40 +01:00
|
|
|
// TODO: Implement path table traversal
|
|
|
|
|
public Errno ReadDir(string path, out List<string> contents)
|
|
|
|
|
{
|
|
|
|
|
contents = null;
|
|
|
|
|
if(!mounted) return Errno.AccessDenied;
|
|
|
|
|
|
|
|
|
|
if(string.IsNullOrWhiteSpace(path) || path == "/")
|
|
|
|
|
{
|
2019-07-19 16:20:58 +01:00
|
|
|
contents = GetFilenames(rootDirectoryCache);
|
|
|
|
|
return Errno.NoError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
string cutPath = path.StartsWith("/", StringComparison.Ordinal)
|
|
|
|
|
? path.Substring(1).ToLower(CultureInfo.CurrentUICulture)
|
|
|
|
|
: path.ToLower(CultureInfo.CurrentUICulture);
|
2019-07-19 15:44:40 +01:00
|
|
|
|
2019-07-19 16:20:58 +01:00
|
|
|
if(directoryCache.TryGetValue(cutPath, out Dictionary<string, DecodedDirectoryEntry> currentDirectory))
|
|
|
|
|
{
|
|
|
|
|
contents = currentDirectory.Keys.ToList();
|
2019-07-19 15:44:40 +01:00
|
|
|
return Errno.NoError;
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-19 16:20:58 +01:00
|
|
|
string[] pieces = cutPath.Split(new[] {'/'}, StringSplitOptions.RemoveEmptyEntries);
|
|
|
|
|
|
|
|
|
|
KeyValuePair<string, DecodedDirectoryEntry> entry =
|
|
|
|
|
rootDirectoryCache.FirstOrDefault(t => t.Key.ToLower(CultureInfo.CurrentUICulture) == pieces[0]);
|
|
|
|
|
|
|
|
|
|
if(string.IsNullOrEmpty(entry.Key)) return Errno.NoSuchFile;
|
|
|
|
|
|
|
|
|
|
if(!entry.Value.Flags.HasFlag(FileFlags.Directory)) return Errno.NotDirectory;
|
|
|
|
|
|
|
|
|
|
string currentPath = pieces[0];
|
|
|
|
|
|
|
|
|
|
currentDirectory = rootDirectoryCache;
|
|
|
|
|
|
|
|
|
|
for(int p = 0; p < pieces.Length; p++)
|
|
|
|
|
{
|
|
|
|
|
entry = currentDirectory.FirstOrDefault(t => t.Key.ToLower(CultureInfo.CurrentUICulture) == pieces[p]);
|
|
|
|
|
|
|
|
|
|
if(string.IsNullOrEmpty(entry.Key)) return Errno.NoSuchFile;
|
|
|
|
|
|
|
|
|
|
if(!entry.Value.Flags.HasFlag(FileFlags.Directory)) return Errno.NotDirectory;
|
|
|
|
|
|
|
|
|
|
currentPath = p == 0 ? pieces[0] : $"{currentPath}/{pieces[p]}";
|
|
|
|
|
uint currentExtent = entry.Value.Extent;
|
|
|
|
|
|
|
|
|
|
if(directoryCache.TryGetValue(currentPath, out currentDirectory)) continue;
|
|
|
|
|
|
|
|
|
|
if(currentExtent == 0) return Errno.InvalidArgument;
|
|
|
|
|
|
|
|
|
|
// TODO: XA, High Sierra
|
2019-07-24 05:27:49 +01:00
|
|
|
uint dirSizeInSectors = entry.Value.Size / 2048;
|
|
|
|
|
if(entry.Value.Size % 2048 > 0) dirSizeInSectors++;
|
|
|
|
|
|
|
|
|
|
byte[] directoryBuffer = image.ReadSectors(currentExtent, dirSizeInSectors);
|
2019-07-19 16:20:58 +01:00
|
|
|
|
|
|
|
|
// TODO: Decode Joliet
|
|
|
|
|
currentDirectory = cdi
|
|
|
|
|
? DecodeCdiDirectory(directoryBuffer)
|
|
|
|
|
: highSierra
|
|
|
|
|
? DecodeHighSierraDirectory(directoryBuffer)
|
|
|
|
|
: DecodeIsoDirectory(directoryBuffer);
|
|
|
|
|
|
|
|
|
|
directoryCache.Add(currentPath, currentDirectory);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
contents = GetFilenames(currentDirectory);
|
|
|
|
|
return Errno.NoError;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
List<string> GetFilenames(Dictionary<string, DecodedDirectoryEntry> dirents)
|
|
|
|
|
{
|
|
|
|
|
List<string> contents = new List<string>();
|
|
|
|
|
foreach(DecodedDirectoryEntry entry in dirents.Values)
|
|
|
|
|
switch(@namespace)
|
|
|
|
|
{
|
|
|
|
|
case Namespace.Normal:
|
2019-07-22 02:58:56 +01:00
|
|
|
contents.Add(entry.Filename.EndsWith(";1", StringComparison.Ordinal)
|
|
|
|
|
? entry.Filename.Substring(0, entry.Filename.Length - 2)
|
|
|
|
|
: entry.Filename);
|
2019-07-19 16:20:58 +01:00
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case Namespace.Vms:
|
|
|
|
|
case Namespace.Joliet:
|
|
|
|
|
case Namespace.Rrip:
|
2019-07-24 04:39:05 +01:00
|
|
|
case Namespace.Romeo:
|
|
|
|
|
contents.Add(entry.Filename);
|
2019-07-19 16:20:58 +01:00
|
|
|
break;
|
|
|
|
|
default: throw new ArgumentOutOfRangeException();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return contents;
|
2019-07-19 15:44:40 +01:00
|
|
|
}
|
2019-07-19 14:26:02 +01:00
|
|
|
|
2019-07-19 16:20:58 +01:00
|
|
|
Dictionary<string, DecodedDirectoryEntry> DecodeCdiDirectory(byte[] data) =>
|
|
|
|
|
throw new NotImplementedException();
|
2019-07-19 14:26:02 +01:00
|
|
|
|
2019-07-20 01:42:01 +01:00
|
|
|
Dictionary<string, DecodedDirectoryEntry> DecodeHighSierraDirectory(byte[] data)
|
|
|
|
|
{
|
|
|
|
|
Dictionary<string, DecodedDirectoryEntry> entries = new Dictionary<string, DecodedDirectoryEntry>();
|
|
|
|
|
int entryOff = 0;
|
|
|
|
|
|
|
|
|
|
while(entryOff + DirectoryRecordSize < data.Length)
|
|
|
|
|
{
|
|
|
|
|
HighSierraDirectoryRecord record =
|
|
|
|
|
Marshal.ByteArrayToStructureLittleEndian<HighSierraDirectoryRecord>(data, entryOff,
|
|
|
|
|
Marshal
|
|
|
|
|
.SizeOf<DirectoryRecord>());
|
|
|
|
|
|
|
|
|
|
if(record.length == 0) break;
|
|
|
|
|
|
|
|
|
|
// Special entries for current and parent directories, skip them
|
|
|
|
|
if(record.name_len == 1)
|
|
|
|
|
if(data[entryOff + DirectoryRecordSize] == 0 || data[entryOff + DirectoryRecordSize] == 1)
|
|
|
|
|
{
|
|
|
|
|
entryOff += record.length;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
DecodedDirectoryEntry entry = new DecodedDirectoryEntry
|
|
|
|
|
{
|
|
|
|
|
Extent = record.size == 0 ? 0 : record.extent,
|
|
|
|
|
Size = record.size,
|
|
|
|
|
Flags = record.flags,
|
|
|
|
|
Interleave = record.interleave,
|
|
|
|
|
VolumeSequenceNumber = record.volume_sequence_number,
|
2019-07-23 06:20:00 +01:00
|
|
|
Filename = Encoding.GetString(data, entryOff + DirectoryRecordSize, record.name_len),
|
|
|
|
|
Timestamp = DecodeHighSierraDateTime(record.date)
|
2019-07-20 01:42:01 +01:00
|
|
|
};
|
|
|
|
|
|
2019-07-22 02:58:56 +01:00
|
|
|
if(!entries.ContainsKey(entry.Filename)) entries.Add(entry.Filename, entry);
|
2019-07-20 01:42:01 +01:00
|
|
|
|
|
|
|
|
entryOff += record.length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return entries;
|
|
|
|
|
}
|
2019-07-19 14:26:02 +01:00
|
|
|
|
|
|
|
|
// TODO: Implement system area
|
2019-07-22 02:58:56 +01:00
|
|
|
Dictionary<string, DecodedDirectoryEntry> DecodeIsoDirectory(byte[] data)
|
2019-07-19 14:26:02 +01:00
|
|
|
{
|
2019-07-19 16:20:58 +01:00
|
|
|
Dictionary<string, DecodedDirectoryEntry> entries = new Dictionary<string, DecodedDirectoryEntry>();
|
|
|
|
|
int entryOff = 0;
|
2019-07-19 14:26:02 +01:00
|
|
|
|
|
|
|
|
while(entryOff + DirectoryRecordSize < data.Length)
|
|
|
|
|
{
|
|
|
|
|
DirectoryRecord record =
|
|
|
|
|
Marshal.ByteArrayToStructureLittleEndian<DirectoryRecord>(data, entryOff,
|
|
|
|
|
Marshal.SizeOf<DirectoryRecord>());
|
|
|
|
|
|
|
|
|
|
if(record.length == 0) break;
|
|
|
|
|
|
|
|
|
|
// Special entries for current and parent directories, skip them
|
|
|
|
|
if(record.name_len == 1)
|
|
|
|
|
if(data[entryOff + DirectoryRecordSize] == 0 || data[entryOff + DirectoryRecordSize] == 1)
|
|
|
|
|
{
|
|
|
|
|
entryOff += record.length;
|
|
|
|
|
continue;
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-19 16:20:58 +01:00
|
|
|
DecodedDirectoryEntry entry = new DecodedDirectoryEntry
|
|
|
|
|
{
|
2019-07-22 02:58:56 +01:00
|
|
|
Extent = record.size == 0 ? 0 : record.extent,
|
|
|
|
|
Size = record.size,
|
|
|
|
|
Flags = record.flags,
|
|
|
|
|
Filename =
|
|
|
|
|
joliet
|
|
|
|
|
? Encoding.BigEndianUnicode.GetString(data, entryOff + DirectoryRecordSize,
|
|
|
|
|
record.name_len)
|
2019-07-23 06:20:00 +01:00
|
|
|
: Encoding.GetString(data, entryOff + DirectoryRecordSize, record.name_len),
|
2019-07-19 16:20:58 +01:00
|
|
|
FileUnitSize = record.file_unit_size,
|
|
|
|
|
Interleave = record.interleave,
|
|
|
|
|
VolumeSequenceNumber = record.volume_sequence_number,
|
2019-07-22 02:28:54 +01:00
|
|
|
Timestamp = DecodeIsoDateTime(record.date)
|
2019-07-19 16:20:58 +01:00
|
|
|
};
|
2019-07-19 14:26:02 +01:00
|
|
|
|
2019-07-28 05:20:57 +01:00
|
|
|
// TODO: XA
|
2019-07-28 14:03:38 +01:00
|
|
|
int systemAreaStart = entryOff + record.name_len + Marshal.SizeOf<DirectoryRecord>();
|
2019-07-28 13:56:22 +01:00
|
|
|
int systemAreaLength = record.length - record.name_len - Marshal.SizeOf<DirectoryRecord>();
|
2019-07-28 05:20:57 +01:00
|
|
|
|
2019-07-28 14:03:38 +01:00
|
|
|
if(systemAreaStart % 2 != 0)
|
|
|
|
|
{
|
|
|
|
|
systemAreaStart++;
|
|
|
|
|
systemAreaLength--;
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-28 05:20:57 +01:00
|
|
|
bool hasResourceFork = false;
|
|
|
|
|
|
2019-07-28 16:48:18 +01:00
|
|
|
int systemAreaOff = systemAreaStart;
|
|
|
|
|
int systemAreaEnd = systemAreaStart + systemAreaLength;
|
|
|
|
|
|
|
|
|
|
while(systemAreaOff + 2 <= systemAreaEnd)
|
2019-07-28 05:20:57 +01:00
|
|
|
{
|
2019-07-28 16:48:18 +01:00
|
|
|
ushort systemAreaSignature = BigEndianBitConverter.ToUInt16(data, systemAreaOff);
|
2019-07-28 05:20:57 +01:00
|
|
|
|
2019-07-28 16:48:18 +01:00
|
|
|
if(BigEndianBitConverter.ToUInt16(data, systemAreaOff + 6) == XA_MAGIC)
|
|
|
|
|
systemAreaSignature = XA_MAGIC;
|
|
|
|
|
|
|
|
|
|
switch(systemAreaSignature)
|
2019-07-28 05:20:57 +01:00
|
|
|
{
|
2019-07-28 16:48:18 +01:00
|
|
|
case APPLE_MAGIC:
|
|
|
|
|
byte appleLength = data[systemAreaOff + 2];
|
|
|
|
|
AppleId appleId = (AppleId)data[systemAreaOff + 3];
|
|
|
|
|
|
|
|
|
|
switch(appleId)
|
|
|
|
|
{
|
|
|
|
|
case AppleId.ProDOS:
|
|
|
|
|
AppleProDOSSystemUse appleProDosSystemUse =
|
|
|
|
|
Marshal.ByteArrayToStructureLittleEndian<AppleProDOSSystemUse>(data,
|
|
|
|
|
systemAreaOff,
|
|
|
|
|
Marshal
|
|
|
|
|
.SizeOf<
|
|
|
|
|
AppleProDOSSystemUse
|
|
|
|
|
>());
|
|
|
|
|
|
|
|
|
|
entry.AppleProDosType = appleProDosSystemUse.aux_type;
|
|
|
|
|
entry.AppleDosType = appleProDosSystemUse.type;
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case AppleId.HFS:
|
|
|
|
|
AppleHFSSystemUse appleHfsSystemUse =
|
|
|
|
|
Marshal.ByteArrayToStructureBigEndian<AppleHFSSystemUse>(data, systemAreaOff,
|
|
|
|
|
Marshal
|
|
|
|
|
.SizeOf<
|
|
|
|
|
AppleHFSSystemUse
|
|
|
|
|
>());
|
|
|
|
|
|
|
|
|
|
hasResourceFork = true;
|
|
|
|
|
|
|
|
|
|
entry.FinderInfo = new FinderInfo();
|
|
|
|
|
entry.FinderInfo.fdCreator = appleHfsSystemUse.creator;
|
|
|
|
|
entry.FinderInfo.fdFlags = (FinderFlags)appleHfsSystemUse.finder_flags;
|
|
|
|
|
entry.FinderInfo.fdType = appleHfsSystemUse.type;
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
systemAreaOff += appleLength;
|
|
|
|
|
break;
|
|
|
|
|
case APPLE_MAGIC_OLD:
|
|
|
|
|
AppleOldId appleOldId = (AppleOldId)data[systemAreaOff + 2];
|
|
|
|
|
|
|
|
|
|
switch(appleOldId)
|
|
|
|
|
{
|
|
|
|
|
case AppleOldId.ProDOS:
|
|
|
|
|
AppleProDOSOldSystemUse appleProDosOldSystemUse =
|
|
|
|
|
Marshal.ByteArrayToStructureLittleEndian<AppleProDOSOldSystemUse>(data,
|
|
|
|
|
systemAreaOff,
|
|
|
|
|
Marshal
|
|
|
|
|
.SizeOf<
|
|
|
|
|
AppleProDOSOldSystemUse
|
|
|
|
|
>());
|
|
|
|
|
entry.AppleProDosType = appleProDosOldSystemUse.aux_type;
|
|
|
|
|
entry.AppleDosType = appleProDosOldSystemUse.type;
|
|
|
|
|
|
|
|
|
|
systemAreaOff += Marshal.SizeOf<AppleProDOSOldSystemUse>();
|
|
|
|
|
break;
|
|
|
|
|
case AppleOldId.TypeCreator:
|
|
|
|
|
case AppleOldId.TypeCreatorBundle:
|
|
|
|
|
AppleHFSTypeCreatorSystemUse appleHfsTypeCreatorSystemUse =
|
|
|
|
|
Marshal.ByteArrayToStructureBigEndian<AppleHFSTypeCreatorSystemUse>(data,
|
|
|
|
|
systemAreaOff,
|
|
|
|
|
Marshal
|
|
|
|
|
.SizeOf<
|
|
|
|
|
AppleHFSTypeCreatorSystemUse
|
|
|
|
|
>());
|
|
|
|
|
|
|
|
|
|
hasResourceFork = true;
|
|
|
|
|
|
|
|
|
|
entry.FinderInfo = new FinderInfo();
|
|
|
|
|
entry.FinderInfo.fdCreator = appleHfsTypeCreatorSystemUse.creator;
|
|
|
|
|
entry.FinderInfo.fdType = appleHfsTypeCreatorSystemUse.type;
|
|
|
|
|
|
|
|
|
|
systemAreaOff += Marshal.SizeOf<AppleHFSTypeCreatorSystemUse>();
|
|
|
|
|
break;
|
|
|
|
|
case AppleOldId.TypeCreatorIcon:
|
|
|
|
|
case AppleOldId.TypeCreatorIconBundle:
|
|
|
|
|
AppleHFSIconSystemUse appleHfsIconSystemUse =
|
|
|
|
|
Marshal.ByteArrayToStructureBigEndian<AppleHFSIconSystemUse>(data,
|
|
|
|
|
systemAreaOff,
|
|
|
|
|
Marshal
|
|
|
|
|
.SizeOf<
|
|
|
|
|
AppleHFSIconSystemUse
|
|
|
|
|
>());
|
|
|
|
|
|
|
|
|
|
hasResourceFork = true;
|
|
|
|
|
|
|
|
|
|
entry.FinderInfo = new FinderInfo();
|
|
|
|
|
entry.FinderInfo.fdCreator = appleHfsIconSystemUse.creator;
|
|
|
|
|
entry.FinderInfo.fdType = appleHfsIconSystemUse.type;
|
|
|
|
|
entry.AppleIcon = appleHfsIconSystemUse.icon;
|
|
|
|
|
|
|
|
|
|
systemAreaOff += Marshal.SizeOf<AppleHFSIconSystemUse>();
|
|
|
|
|
break;
|
|
|
|
|
case AppleOldId.HFS:
|
|
|
|
|
AppleHFSOldSystemUse appleHfsSystemUse =
|
|
|
|
|
Marshal.ByteArrayToStructureBigEndian<AppleHFSOldSystemUse>(data, systemAreaOff,
|
|
|
|
|
Marshal
|
|
|
|
|
.SizeOf<
|
|
|
|
|
AppleHFSOldSystemUse
|
|
|
|
|
>());
|
|
|
|
|
|
|
|
|
|
hasResourceFork = true;
|
|
|
|
|
|
|
|
|
|
entry.FinderInfo = new FinderInfo();
|
|
|
|
|
entry.FinderInfo.fdCreator = appleHfsSystemUse.creator;
|
|
|
|
|
entry.FinderInfo.fdFlags = (FinderFlags)appleHfsSystemUse.finder_flags;
|
|
|
|
|
entry.FinderInfo.fdType = appleHfsSystemUse.type;
|
|
|
|
|
|
|
|
|
|
systemAreaOff += Marshal.SizeOf<AppleHFSOldSystemUse>();
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
// Cannot continue as we don't know this structure size
|
|
|
|
|
systemAreaOff = systemAreaEnd;
|
|
|
|
|
break;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
break;
|
|
|
|
|
case XA_MAGIC:
|
|
|
|
|
entry.XA = Marshal.ByteArrayToStructureBigEndian<CdromXa>(data, systemAreaOff,
|
|
|
|
|
Marshal.SizeOf<CdromXa>());
|
|
|
|
|
|
|
|
|
|
systemAreaOff += Marshal.SizeOf<CdromXa>();
|
|
|
|
|
break;
|
|
|
|
|
default:
|
|
|
|
|
// Cannot continue as we don't know this structure size
|
|
|
|
|
systemAreaOff = systemAreaEnd;
|
|
|
|
|
break;
|
2019-07-28 05:20:57 +01:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-19 14:26:02 +01:00
|
|
|
// TODO: Multi-extent files
|
2019-07-22 01:08:05 +01:00
|
|
|
if(entry.Flags.HasFlag(FileFlags.Associated))
|
|
|
|
|
{
|
2019-07-28 05:20:57 +01:00
|
|
|
if(entries.ContainsKey(entry.Filename))
|
|
|
|
|
{
|
|
|
|
|
if(hasResourceFork) entries[entry.Filename].ResourceFork = entry;
|
|
|
|
|
else entries[entry.Filename].AssociatedFile = entry;
|
|
|
|
|
}
|
2019-07-22 01:08:05 +01:00
|
|
|
else
|
2019-07-28 13:56:22 +01:00
|
|
|
{
|
2019-07-22 02:58:56 +01:00
|
|
|
entries[entry.Filename] = new DecodedDirectoryEntry
|
2019-07-22 01:08:05 +01:00
|
|
|
{
|
|
|
|
|
Extent = 0,
|
|
|
|
|
Size = 0,
|
|
|
|
|
Flags = record.flags ^ FileFlags.Associated,
|
|
|
|
|
FileUnitSize = 0,
|
|
|
|
|
Interleave = 0,
|
|
|
|
|
VolumeSequenceNumber = record.volume_sequence_number,
|
2019-07-22 02:58:56 +01:00
|
|
|
Filename = joliet
|
|
|
|
|
? Encoding.BigEndianUnicode.GetString(data,
|
|
|
|
|
entryOff + DirectoryRecordSize,
|
|
|
|
|
record.name_len)
|
2019-07-23 06:20:00 +01:00
|
|
|
: Encoding.GetString(data, entryOff + DirectoryRecordSize,
|
|
|
|
|
record.name_len),
|
2019-07-28 14:03:38 +01:00
|
|
|
Timestamp = DecodeIsoDateTime(record.date)
|
2019-07-22 01:08:05 +01:00
|
|
|
};
|
2019-07-28 13:56:22 +01:00
|
|
|
|
|
|
|
|
if(hasResourceFork) entries[entry.Filename].ResourceFork = entry;
|
|
|
|
|
else entries[entry.Filename].AssociatedFile = entry;
|
|
|
|
|
}
|
2019-07-22 01:08:05 +01:00
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
2019-07-22 02:58:56 +01:00
|
|
|
if(entries.ContainsKey(entry.Filename))
|
2019-07-28 05:20:57 +01:00
|
|
|
{
|
2019-07-22 02:58:56 +01:00
|
|
|
entry.AssociatedFile = entries[entry.Filename].AssociatedFile;
|
2019-07-28 05:20:57 +01:00
|
|
|
entry.ResourceFork = entries[entry.Filename].ResourceFork;
|
|
|
|
|
}
|
|
|
|
|
|
2019-07-22 02:58:56 +01:00
|
|
|
entries[entry.Filename] = entry;
|
2019-07-22 01:08:05 +01:00
|
|
|
}
|
2019-07-19 14:26:02 +01:00
|
|
|
|
|
|
|
|
entryOff += record.length;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return entries;
|
|
|
|
|
}
|
2019-07-19 12:14:30 +01:00
|
|
|
}
|
|
|
|
|
}
|