2017-05-19 20:28:49 +01:00
|
|
|
// /***************************************************************************
|
2016-07-21 17:36:51 +01:00
|
|
|
// The Disc Image Chef
|
|
|
|
|
// ----------------------------------------------------------------------------
|
|
|
|
|
//
|
|
|
|
|
// Filename : Dir.cs
|
2016-07-28 18:13:49 +01:00
|
|
|
// Author(s) : Natalia Portillo <claunia@claunia.com>
|
2016-07-21 17:36:51 +01:00
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// Component : Apple Lisa filesystem plugin.
|
2016-07-21 17:36:51 +01:00
|
|
|
//
|
|
|
|
|
// --[ Description ] ----------------------------------------------------------
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// Methods to handle Apple Lisa filesystem catalogs (aka directories).
|
2016-07-21 17:36:51 +01:00
|
|
|
//
|
|
|
|
|
// --[ License ] --------------------------------------------------------------
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// This library is free software; you can redistribute it and/or modify
|
|
|
|
|
// it under the terms of the GNU Lesser General Public License as
|
|
|
|
|
// published by the Free Software Foundation; either version 2.1 of the
|
2016-07-21 17:36:51 +01:00
|
|
|
// License, or (at your option) any later version.
|
|
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// This library is distributed in the hope that it will be useful, but
|
|
|
|
|
// WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
|
// Lesser General Public License for more details.
|
2016-07-21 17:36:51 +01:00
|
|
|
//
|
2016-07-28 18:13:49 +01:00
|
|
|
// You should have received a copy of the GNU Lesser General Public
|
|
|
|
|
// License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
2016-07-21 17:36:51 +01:00
|
|
|
//
|
|
|
|
|
// ----------------------------------------------------------------------------
|
2018-12-29 17:34:38 +00:00
|
|
|
// Copyright © 2011-2019 Natalia Portillo
|
2016-07-21 17:36:51 +01:00
|
|
|
// ****************************************************************************/
|
2016-07-28 18:13:49 +01:00
|
|
|
|
2016-07-21 17:36:51 +01:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
2017-12-21 07:08:26 +00:00
|
|
|
using System.Linq;
|
2018-06-25 19:08:16 +01:00
|
|
|
using DiscImageChef.CommonTypes.Enums;
|
|
|
|
|
using DiscImageChef.CommonTypes.Structs;
|
2016-08-21 19:23:58 +01:00
|
|
|
using DiscImageChef.Decoders;
|
2016-07-21 17:36:51 +01:00
|
|
|
|
|
|
|
|
namespace DiscImageChef.Filesystems.LisaFS
|
|
|
|
|
{
|
2017-12-21 16:27:09 +00:00
|
|
|
public partial class LisaFS
|
2016-07-21 17:36:51 +01:00
|
|
|
{
|
2016-07-29 02:22:24 +01:00
|
|
|
/// <summary>
|
2017-12-24 02:37:41 +00:00
|
|
|
/// Solves a symbolic link.
|
2016-07-29 02:22:24 +01:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">Link path.</param>
|
|
|
|
|
/// <param name="dest">Link destination.</param>
|
2017-12-26 08:17:28 +00:00
|
|
|
public Errno ReadLink(string path, out string dest)
|
2016-07-21 17:36:51 +01:00
|
|
|
{
|
2017-12-26 08:17:28 +00:00
|
|
|
dest = null;
|
2016-07-21 18:39:38 +01:00
|
|
|
// LisaFS does not support symbolic links (afaik)
|
|
|
|
|
return Errno.NotSupported;
|
2016-07-21 17:36:51 +01:00
|
|
|
}
|
|
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
/// <summary>
|
2017-12-24 02:37:41 +00:00
|
|
|
/// Lists contents from a directory.
|
2016-07-29 02:22:24 +01:00
|
|
|
/// </summary>
|
|
|
|
|
/// <param name="path">Directory path.</param>
|
|
|
|
|
/// <param name="contents">Directory contents.</param>
|
2017-12-26 08:17:28 +00:00
|
|
|
public Errno ReadDir(string path, out List<string> contents)
|
2016-07-21 17:36:51 +01:00
|
|
|
{
|
2017-12-26 08:17:28 +00:00
|
|
|
contents = null;
|
2017-12-22 08:43:22 +00:00
|
|
|
Errno error = LookupFileId(path, out short fileId, out bool isDir);
|
2017-12-19 20:33:03 +00:00
|
|
|
if(error != Errno.NoError) return error;
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2017-12-19 20:33:03 +00:00
|
|
|
if(!isDir) return Errno.NotDirectory;
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-31 01:53:47 +01:00
|
|
|
/*List<CatalogEntry> catalog;
|
|
|
|
|
error = ReadCatalog(fileId, out catalog);
|
|
|
|
|
if(error != Errno.NoError)
|
|
|
|
|
return error;*/
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2017-12-26 08:17:28 +00:00
|
|
|
ReadDir(fileId, out contents);
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// On debug add system files as readable files
|
|
|
|
|
// Syntax similar to NTFS
|
2016-07-31 01:53:47 +01:00
|
|
|
if(debug && fileId == DIRID_ROOT)
|
2016-07-22 02:18:53 +01:00
|
|
|
{
|
|
|
|
|
contents.Add("$MDDF");
|
|
|
|
|
contents.Add("$Boot");
|
|
|
|
|
contents.Add("$Loader");
|
|
|
|
|
contents.Add("$Bitmap");
|
|
|
|
|
contents.Add("$S-Record");
|
|
|
|
|
contents.Add("$");
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
contents.Sort();
|
|
|
|
|
return Errno.NoError;
|
|
|
|
|
}
|
|
|
|
|
|
2017-12-26 08:17:28 +00:00
|
|
|
Errno ReadDir(short dirId, out List<string> contents)
|
2016-07-31 01:53:47 +01:00
|
|
|
{
|
2017-12-21 07:08:26 +00:00
|
|
|
// Do same trick as Mac OS X, replace filesystem '/' with '-',
|
|
|
|
|
// as '-' is the path separator in Lisa OS
|
2017-12-24 02:37:41 +00:00
|
|
|
contents = (from entry in catalogCache
|
|
|
|
|
where entry.parentID == dirId
|
2017-12-26 08:01:40 +00:00
|
|
|
select StringHandlers.CToString(entry.filename, Encoding).Replace('/', '-')).ToList();
|
2016-07-31 01:53:47 +01:00
|
|
|
|
|
|
|
|
return Errno.NoError;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
/// <summary>
|
2017-12-24 02:37:41 +00:00
|
|
|
/// Reads, interprets and caches the Catalog File
|
2016-07-29 02:22:24 +01:00
|
|
|
/// </summary>
|
2016-07-31 01:53:47 +01:00
|
|
|
Errno ReadCatalog()
|
2016-07-22 02:18:53 +01:00
|
|
|
{
|
2017-12-19 20:33:03 +00:00
|
|
|
if(!mounted) return Errno.AccessDenied;
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-31 01:53:47 +01:00
|
|
|
catalogCache = new List<CatalogEntry>();
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Do differently for V1 and V2
|
2017-12-22 08:43:22 +00:00
|
|
|
if(mddf.fsversion == LISA_V2 || mddf.fsversion == LISA_V1)
|
2016-07-28 04:12:49 +01:00
|
|
|
{
|
2017-12-22 08:43:22 +00:00
|
|
|
Errno error = ReadFile((short)FILEID_CATALOG, out byte[] buf);
|
2017-12-21 16:07:20 +00:00
|
|
|
if(error != Errno.NoError) return error;
|
2016-07-28 04:12:49 +01:00
|
|
|
|
2018-06-22 08:08:38 +01:00
|
|
|
int offset = 0;
|
2016-07-28 04:12:49 +01:00
|
|
|
List<CatalogEntryV2> catalogV2 = new List<CatalogEntryV2>();
|
|
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// For each entry on the catalog
|
2016-07-28 04:12:49 +01:00
|
|
|
while(offset + 54 < buf.Length)
|
|
|
|
|
{
|
2017-12-26 08:01:40 +00:00
|
|
|
CatalogEntryV2 entV2 = new CatalogEntryV2
|
|
|
|
|
{
|
|
|
|
|
filenameLen = buf[offset],
|
2018-06-22 08:08:38 +01:00
|
|
|
filename = new byte[E_NAME],
|
|
|
|
|
unknown1 = buf[offset + 0x21],
|
|
|
|
|
fileType = buf[offset + 0x22],
|
|
|
|
|
unknown2 = buf[offset + 0x23],
|
|
|
|
|
fileID = BigEndianBitConverter.ToInt16(buf, offset + 0x24),
|
|
|
|
|
unknown3 = new byte[16]
|
2017-12-26 08:01:40 +00:00
|
|
|
};
|
2016-07-28 04:12:49 +01:00
|
|
|
Array.Copy(buf, offset + 0x01, entV2.filename, 0, E_NAME);
|
|
|
|
|
Array.Copy(buf, offset + 0x26, entV2.unknown3, 0, 16);
|
|
|
|
|
|
|
|
|
|
offset += 54;
|
|
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Check that the entry is correct, not empty or garbage
|
2016-07-28 04:12:49 +01:00
|
|
|
if(entV2.filenameLen != 0 && entV2.filenameLen <= E_NAME && entV2.fileType != 0 && entV2.fileID > 0)
|
|
|
|
|
catalogV2.Add(entV2);
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Convert entries to V3 format
|
2016-07-28 04:12:49 +01:00
|
|
|
foreach(CatalogEntryV2 entV2 in catalogV2)
|
|
|
|
|
{
|
2017-12-22 08:43:22 +00:00
|
|
|
error = ReadExtentsFile(entV2.fileID, out ExtentFile ext);
|
2017-12-21 06:06:19 +00:00
|
|
|
if(error != Errno.NoError) continue;
|
|
|
|
|
|
2017-12-22 08:43:22 +00:00
|
|
|
CatalogEntry entV3 = new CatalogEntry
|
|
|
|
|
{
|
2018-06-22 08:08:38 +01:00
|
|
|
fileID = entV2.fileID,
|
2017-12-22 08:43:22 +00:00
|
|
|
filename = new byte[32],
|
|
|
|
|
fileType = entV2.fileType,
|
2018-06-22 08:08:38 +01:00
|
|
|
length = (int)srecords[entV2.fileID].filesize,
|
|
|
|
|
dtc = ext.dtc,
|
|
|
|
|
dtm = ext.dtm
|
2017-12-22 08:43:22 +00:00
|
|
|
};
|
2017-12-21 06:06:19 +00:00
|
|
|
Array.Copy(entV2.filename, 0, entV3.filename, 0, entV2.filenameLen);
|
|
|
|
|
|
|
|
|
|
catalogCache.Add(entV3);
|
2016-07-28 04:12:49 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Errno.NoError;
|
|
|
|
|
}
|
|
|
|
|
|
2016-07-27 17:08:49 +01:00
|
|
|
byte[] firstCatalogBlock = null;
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Search for the first sector describing the catalog
|
|
|
|
|
// While root catalog is not stored in S-Records, probably rest are? (unchecked)
|
|
|
|
|
// If root catalog is not pointed in MDDF (unchecked) maybe it's always following S-Records File?
|
2017-12-26 06:05:12 +00:00
|
|
|
for(ulong i = 0; i < device.Info.Sectors; i++)
|
2016-07-22 02:18:53 +01:00
|
|
|
{
|
2017-12-22 08:43:22 +00:00
|
|
|
DecodeTag(device.ReadSectorTag(i, SectorTagType.AppleSectorTag), out LisaTag.PriamTag catTag);
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2017-12-22 02:04:18 +00:00
|
|
|
if(catTag.FileId != FILEID_CATALOG || catTag.RelPage != 0) continue;
|
2017-12-21 06:06:19 +00:00
|
|
|
|
|
|
|
|
firstCatalogBlock = device.ReadSectors(i, 4);
|
|
|
|
|
break;
|
2016-07-22 02:18:53 +01:00
|
|
|
}
|
|
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Catalog not found
|
2017-12-19 20:33:03 +00:00
|
|
|
if(firstCatalogBlock == null) return Errno.NoSuchFile;
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-27 17:08:49 +01:00
|
|
|
ulong prevCatalogPointer;
|
|
|
|
|
prevCatalogPointer = BigEndianBitConverter.ToUInt32(firstCatalogBlock, 0x7F6);
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Traverse double-linked list until first catalog block
|
2016-07-27 17:08:49 +01:00
|
|
|
while(prevCatalogPointer != 0xFFFFFFFF)
|
2016-07-22 02:18:53 +01:00
|
|
|
{
|
2017-12-19 20:33:03 +00:00
|
|
|
DecodeTag(device.ReadSectorTag(prevCatalogPointer + mddf.mddf_block + volumePrefix, SectorTagType.AppleSectorTag),
|
2017-12-22 08:43:22 +00:00
|
|
|
out LisaTag.PriamTag prevTag);
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2017-12-22 02:04:18 +00:00
|
|
|
if(prevTag.FileId != FILEID_CATALOG) return Errno.InvalidArgument;
|
2016-07-27 17:08:49 +01:00
|
|
|
|
2018-06-22 08:08:38 +01:00
|
|
|
firstCatalogBlock = device.ReadSectors(prevCatalogPointer + mddf.mddf_block + volumePrefix, 4);
|
2016-07-27 17:08:49 +01:00
|
|
|
prevCatalogPointer = BigEndianBitConverter.ToUInt32(firstCatalogBlock, 0x7F6);
|
2016-07-22 02:18:53 +01:00
|
|
|
}
|
|
|
|
|
|
2016-07-27 17:08:49 +01:00
|
|
|
ulong nextCatalogPointer;
|
|
|
|
|
nextCatalogPointer = BigEndianBitConverter.ToUInt32(firstCatalogBlock, 0x7FA);
|
|
|
|
|
|
2017-12-22 08:43:22 +00:00
|
|
|
List<byte[]> catalogBlocks = new List<byte[]> {firstCatalogBlock};
|
2016-07-27 17:08:49 +01:00
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Traverse double-linked list to read full catalog
|
2016-07-27 17:08:49 +01:00
|
|
|
while(nextCatalogPointer != 0xFFFFFFFF)
|
|
|
|
|
{
|
2017-12-19 20:33:03 +00:00
|
|
|
DecodeTag(device.ReadSectorTag(nextCatalogPointer + mddf.mddf_block + volumePrefix, SectorTagType.AppleSectorTag),
|
2017-12-22 08:43:22 +00:00
|
|
|
out LisaTag.PriamTag nextTag);
|
2016-07-27 17:08:49 +01:00
|
|
|
|
2017-12-22 02:04:18 +00:00
|
|
|
if(nextTag.FileId != FILEID_CATALOG) return Errno.InvalidArgument;
|
2016-07-27 17:08:49 +01:00
|
|
|
|
2016-07-27 22:13:47 +01:00
|
|
|
byte[] nextCatalogBlock = device.ReadSectors(nextCatalogPointer + mddf.mddf_block + volumePrefix, 4);
|
2016-07-27 17:08:49 +01:00
|
|
|
nextCatalogPointer = BigEndianBitConverter.ToUInt32(nextCatalogBlock, 0x7FA);
|
|
|
|
|
catalogBlocks.Add(nextCatalogBlock);
|
|
|
|
|
}
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Foreach catalog block
|
2016-07-27 17:08:49 +01:00
|
|
|
foreach(byte[] buf in catalogBlocks)
|
2016-07-22 02:18:53 +01:00
|
|
|
{
|
2016-07-27 17:08:49 +01:00
|
|
|
int offset = 0;
|
|
|
|
|
|
2016-07-29 02:22:24 +01:00
|
|
|
// Traverse all entries
|
2017-12-20 17:26:28 +00:00
|
|
|
while(offset + 64 <= buf.Length)
|
2017-12-24 02:37:41 +00:00
|
|
|
// Catalog block header
|
2018-06-22 08:08:38 +01:00
|
|
|
if(buf[offset + 0x24] == 0x08)
|
|
|
|
|
offset += 78;
|
2016-07-29 02:22:24 +01:00
|
|
|
// Maybe just garbage? Found in more than 1 disk
|
2017-12-19 20:33:03 +00:00
|
|
|
else if(buf[offset + 0x24] == 0x7C) offset += 50;
|
2016-07-29 02:22:24 +01:00
|
|
|
// Apparently reserved to indicate end of catalog?
|
2017-12-19 20:33:03 +00:00
|
|
|
else if(buf[offset + 0x24] == 0xFF) break;
|
2016-07-29 02:22:24 +01:00
|
|
|
// Normal entry
|
2016-07-27 17:08:49 +01:00
|
|
|
else if(buf[offset + 0x24] == 0x03 && buf[offset] == 0x24)
|
2016-07-27 13:33:41 +01:00
|
|
|
{
|
2017-12-22 08:43:22 +00:00
|
|
|
CatalogEntry entry = new CatalogEntry
|
|
|
|
|
{
|
2018-06-22 08:08:38 +01:00
|
|
|
marker = buf[offset],
|
|
|
|
|
parentID = BigEndianBitConverter.ToUInt16(buf, offset + 0x01),
|
|
|
|
|
filename = new byte[E_NAME],
|
|
|
|
|
terminator = buf[offset + 0x23],
|
|
|
|
|
fileType = buf[offset + 0x24],
|
|
|
|
|
unknown = buf[offset + 0x25],
|
|
|
|
|
fileID = BigEndianBitConverter.ToInt16(buf, offset + 0x26),
|
|
|
|
|
dtc = BigEndianBitConverter.ToUInt32(buf, offset + 0x28),
|
|
|
|
|
dtm = BigEndianBitConverter.ToUInt32(buf, offset + 0x2C),
|
|
|
|
|
length = BigEndianBitConverter.ToInt32(buf, offset + 0x30),
|
|
|
|
|
wasted = BigEndianBitConverter.ToInt32(buf, offset + 0x34),
|
|
|
|
|
tail = new byte[8]
|
2017-12-22 08:43:22 +00:00
|
|
|
};
|
2016-07-27 17:08:49 +01:00
|
|
|
Array.Copy(buf, offset + 0x03, entry.filename, 0, E_NAME);
|
2018-06-22 08:08:38 +01:00
|
|
|
Array.Copy(buf, offset + 0x38, entry.tail, 0, 8);
|
2016-07-27 17:08:49 +01:00
|
|
|
|
2017-12-22 08:43:22 +00:00
|
|
|
if(ReadExtentsFile(entry.fileID, out _) == Errno.NoError)
|
2016-07-27 17:08:49 +01:00
|
|
|
if(!fileSizeCache.ContainsKey(entry.fileID))
|
|
|
|
|
{
|
2016-07-31 01:53:47 +01:00
|
|
|
catalogCache.Add(entry);
|
2016-07-27 17:08:49 +01:00
|
|
|
fileSizeCache.Add(entry.fileID, entry.length);
|
|
|
|
|
}
|
2016-07-22 02:18:53 +01:00
|
|
|
|
2016-07-27 17:08:49 +01:00
|
|
|
offset += 64;
|
|
|
|
|
}
|
2016-07-31 01:53:47 +01:00
|
|
|
// Subdirectory entry
|
|
|
|
|
else if(buf[offset + 0x24] == 0x01 && buf[offset] == 0x24)
|
|
|
|
|
{
|
2017-12-22 08:43:22 +00:00
|
|
|
CatalogEntry entry = new CatalogEntry
|
|
|
|
|
{
|
2018-06-22 08:08:38 +01:00
|
|
|
marker = buf[offset],
|
|
|
|
|
parentID = BigEndianBitConverter.ToUInt16(buf, offset + 0x01),
|
|
|
|
|
filename = new byte[E_NAME],
|
|
|
|
|
terminator = buf[offset + 0x23],
|
|
|
|
|
fileType = buf[offset + 0x24],
|
|
|
|
|
unknown = buf[offset + 0x25],
|
|
|
|
|
fileID = BigEndianBitConverter.ToInt16(buf, offset + 0x26),
|
|
|
|
|
dtc = BigEndianBitConverter.ToUInt32(buf, offset + 0x28),
|
|
|
|
|
dtm = BigEndianBitConverter.ToUInt32(buf, offset + 0x2C),
|
|
|
|
|
length = 0,
|
|
|
|
|
wasted = 0,
|
|
|
|
|
tail = null
|
2017-12-22 08:43:22 +00:00
|
|
|
};
|
2016-07-31 01:53:47 +01:00
|
|
|
Array.Copy(buf, offset + 0x03, entry.filename, 0, E_NAME);
|
2017-12-22 08:43:22 +00:00
|
|
|
|
|
|
|
|
if(!directoryDtcCache.ContainsKey(entry.fileID))
|
|
|
|
|
directoryDtcCache.Add(entry.fileID, DateHandlers.LisaToDateTime(entry.dtc));
|
2016-07-31 01:53:47 +01:00
|
|
|
|
|
|
|
|
catalogCache.Add(entry);
|
|
|
|
|
|
|
|
|
|
offset += 48;
|
|
|
|
|
}
|
2017-12-19 20:33:03 +00:00
|
|
|
else break;
|
2016-07-22 02:18:53 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
return Errno.NoError;
|
2016-07-21 17:36:51 +01:00
|
|
|
}
|
|
|
|
|
|
2016-07-31 01:53:47 +01:00
|
|
|
Errno StatDir(short dirId, out FileEntryInfo stat)
|
|
|
|
|
{
|
|
|
|
|
stat = null;
|
|
|
|
|
|
2017-12-19 20:33:03 +00:00
|
|
|
if(!mounted) return Errno.AccessDenied;
|
2016-07-31 01:53:47 +01:00
|
|
|
|
2017-12-22 08:43:22 +00:00
|
|
|
stat = new FileEntryInfo
|
|
|
|
|
{
|
|
|
|
|
Attributes = new FileAttributes(),
|
2018-06-22 08:08:38 +01:00
|
|
|
Inode = FILEID_CATALOG,
|
|
|
|
|
Mode = 0x16D,
|
|
|
|
|
Links = 0,
|
|
|
|
|
UID = 0,
|
|
|
|
|
GID = 0,
|
|
|
|
|
DeviceNo = 0,
|
|
|
|
|
Length = 0,
|
|
|
|
|
BlockSize = mddf.datasize,
|
|
|
|
|
Blocks = 0
|
2017-12-22 08:43:22 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
directoryDtcCache.TryGetValue(dirId, out DateTime tmp);
|
2016-07-31 01:53:47 +01:00
|
|
|
stat.CreationTime = tmp;
|
|
|
|
|
|
|
|
|
|
return Errno.NoError;
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|