Move DirectoryEntryEx

This commit is contained in:
Alex Barney 2021-12-19 00:41:06 -07:00
parent 00a5b07da0
commit 27bf4a1003
10 changed files with 29 additions and 18 deletions

View file

@ -1,27 +1,9 @@
using System; using System;
using System.Runtime.InteropServices; using System.Runtime.InteropServices;
using LibHac.Common; using LibHac.Common;
using LibHac.FsSystem;
namespace LibHac.Fs; namespace LibHac.Fs;
public class DirectoryEntryEx
{
public string Name { get; set; }
public string FullPath { get; set; }
public NxFileAttributes Attributes { get; set; }
public DirectoryEntryType Type { get; set; }
public long Size { get; set; }
public DirectoryEntryEx(string name, string fullPath, DirectoryEntryType type, long size)
{
Name = name;
FullPath = PathTools.Normalize(fullPath);
Type = type;
Size = size;
}
}
[StructLayout(LayoutKind.Explicit)] [StructLayout(LayoutKind.Explicit)]
public struct DirectoryEntry public struct DirectoryEntry
{ {

View file

@ -7,6 +7,7 @@ using LibHac.Common;
using LibHac.Crypto; using LibHac.Crypto;
using LibHac.Fs; using LibHac.Fs;
using LibHac.Fs.Fsa; using LibHac.Fs.Fsa;
using LibHac.Tools.Fs;
using LibHac.Tools.FsSystem; using LibHac.Tools.FsSystem;
using LibHac.Util; using LibHac.Util;

View file

@ -0,0 +1,21 @@
using LibHac.Fs;
using LibHac.FsSystem;
namespace LibHac.Tools.Fs;
public class DirectoryEntryEx
{
public string Name { get; set; }
public string FullPath { get; set; }
public NxFileAttributes Attributes { get; set; }
public DirectoryEntryType Type { get; set; }
public long Size { get; set; }
public DirectoryEntryEx(string name, string fullPath, DirectoryEntryType type, long size)
{
Name = name;
FullPath = PathTools.Normalize(fullPath);
Type = type;
Size = size;
}
}

View file

@ -4,6 +4,7 @@ using LibHac.Common;
using LibHac.Fs; using LibHac.Fs;
using LibHac.Fs.Fsa; using LibHac.Fs.Fsa;
using LibHac.FsSystem; using LibHac.FsSystem;
using LibHac.Tools.Fs;
using LibHac.Util; using LibHac.Util;
namespace LibHac.Tools.FsSystem; namespace LibHac.Tools.FsSystem;

View file

@ -7,6 +7,7 @@ using LibHac.Common;
using LibHac.Fs; using LibHac.Fs;
using LibHac.Fs.Fsa; using LibHac.Fs.Fsa;
using LibHac.FsSystem; using LibHac.FsSystem;
using LibHac.Tools.Fs;
using LibHac.Util; using LibHac.Util;
using Path = LibHac.Fs.Path; using Path = LibHac.Fs.Path;

View file

@ -6,6 +6,7 @@ using LibHac.Common;
using LibHac.Fs; using LibHac.Fs;
using LibHac.Fs.Fsa; using LibHac.Fs.Fsa;
using LibHac.FsSystem; using LibHac.FsSystem;
using LibHac.Tools.Fs;
using LibHac.Util; using LibHac.Util;
namespace LibHac.Tools.FsSystem.RomFs; namespace LibHac.Tools.FsSystem.RomFs;

View file

@ -2,6 +2,7 @@
using LibHac.Common; using LibHac.Common;
using LibHac.Fs; using LibHac.Fs;
using LibHac.Fs.Fsa; using LibHac.Fs.Fsa;
using LibHac.Tools.Fs;
using LibHac.Util; using LibHac.Util;
using Path = LibHac.Fs.Path; using Path = LibHac.Fs.Path;

View file

@ -7,6 +7,7 @@ using LibHac.Fs.Fsa;
using LibHac.Fs.Impl; using LibHac.Fs.Impl;
using LibHac.FsSystem; using LibHac.FsSystem;
using LibHac.Npdm; using LibHac.Npdm;
using LibHac.Tools.Fs;
using LibHac.Tools.FsSystem; using LibHac.Tools.FsSystem;
using LibHac.Tools.FsSystem.NcaUtils; using LibHac.Tools.FsSystem.NcaUtils;
using static hactoolnet.Print; using static hactoolnet.Print;

View file

@ -1,6 +1,7 @@
using System.IO; using System.IO;
using LibHac.Fs; using LibHac.Fs;
using LibHac.FsSystem; using LibHac.FsSystem;
using LibHac.Tools.Fs;
using LibHac.Tools.FsSystem; using LibHac.Tools.FsSystem;
using LibHac.Tools.FsSystem.RomFs; using LibHac.Tools.FsSystem.RomFs;

View file

@ -9,6 +9,7 @@ using LibHac.Fs;
using LibHac.Fs.Fsa; using LibHac.Fs.Fsa;
using LibHac.Fs.Impl; using LibHac.Fs.Impl;
using LibHac.FsSystem; using LibHac.FsSystem;
using LibHac.Tools.Fs;
using LibHac.Tools.FsSystem; using LibHac.Tools.FsSystem;
using LibHac.Tools.FsSystem.Save; using LibHac.Tools.FsSystem.Save;
using static hactoolnet.Print; using static hactoolnet.Print;