diff --git a/Structs/Filesystems.cs b/Structs/Filesystems.cs
index 0e64d66..ec52ec1 100644
--- a/Structs/Filesystems.cs
+++ b/Structs/Filesystems.cs
@@ -40,6 +40,7 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
+using System.Text.Json.Serialization;
namespace Aaru.CommonTypes.Structs
{
@@ -155,25 +156,25 @@ namespace Aaru.CommonTypes.Structs
public class FileEntryInfo
{
/// File attributes
- public FileAttributes Attributes;
+ public FileAttributes Attributes { get; set; }
/// File length in blocks
- public long Blocks;
+ public long Blocks { get; set; }
/// File block size in bytes
- public long BlockSize;
+ public long BlockSize { get; set; }
/// If file points to a device, device number. Null if the underlying filesystem does not support them.
- public ulong? DeviceNo;
+ public ulong? DeviceNo { get; set; }
/// POSIX group ID. Null if the underlying filesystem does not support them.
- public ulong? GID;
+ public ulong? GID { get; set; }
/// inode number for this file (or other unique identifier for the volume)
- public ulong Inode;
+ public ulong Inode { get; set; }
/// File length in bytes
- public long Length;
+ public long Length { get; set; }
/// Number of hard links pointing to this file (. and .. entries count as hard links)
- public ulong Links;
+ public ulong Links { get; set; }
/// POSIX permissions/mode for this file. Null if the underlying filesystem does not support them.
- public uint? Mode;
+ public uint? Mode { get; set; }
/// POSIX owner ID. Null if the underlying filesystem does not support them.
- public ulong? UID;
+ public ulong? UID { get; set; }
/// File creation date in UTC. Null if the underlying filesystem does not support them.
public DateTime? CreationTimeUtc { get; set; }
/// File last access date in UTC. Null if the underlying filesystem does not support them.
@@ -186,6 +187,7 @@ namespace Aaru.CommonTypes.Structs
public DateTime? LastWriteTimeUtc { get; set; }
/// File creation date. Null if the underlying filesystem does not support them.
+ [JsonIgnore]
public DateTime? CreationTime
{
get => CreationTimeUtc?.ToLocalTime();
@@ -193,6 +195,7 @@ namespace Aaru.CommonTypes.Structs
}
/// File last access date. Null if the underlying filesystem does not support them.
+ [JsonIgnore]
public DateTime? AccessTime
{
get => AccessTimeUtc?.ToLocalTime();
@@ -200,6 +203,7 @@ namespace Aaru.CommonTypes.Structs
}
/// File attributes change date. Null if the underlying filesystem does not support them.
+ [JsonIgnore]
public DateTime? StatusChangeTime
{
get => StatusChangeTimeUtc?.ToLocalTime();
@@ -207,6 +211,7 @@ namespace Aaru.CommonTypes.Structs
}
/// File last backup date. Null if the underlying filesystem does not support them.
+ [JsonIgnore]
public DateTime? BackupTime
{
get => BackupTimeUtc?.ToLocalTime();
@@ -214,6 +219,7 @@ namespace Aaru.CommonTypes.Structs
}
/// File last modification date. Null if the underlying filesystem does not support them.
+ [JsonIgnore]
public DateTime? LastWriteTime
{
get => LastWriteTimeUtc?.ToLocalTime();