Solution restructured to use multiple test projects
This commit is contained in:
51
src/AMWD.Common/Packing/Ar/ArFileInfo.cs
Normal file
51
src/AMWD.Common/Packing/Ar/ArFileInfo.cs
Normal file
@@ -0,0 +1,51 @@
|
||||
using System;
|
||||
|
||||
namespace AMWD.Common.Packing.Ar
|
||||
{
|
||||
/// <summary>
|
||||
/// Represents the file information saved in the archive.
|
||||
/// </summary>
|
||||
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
|
||||
public class ArFileInfo
|
||||
{
|
||||
/// <summary>
|
||||
/// Gets or sets the file name.
|
||||
/// </summary>
|
||||
public string FileName { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the file size in bytes.
|
||||
/// </summary>
|
||||
public long FileSize { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the timestamp of the last modification.
|
||||
/// </summary>
|
||||
public DateTime ModifyTime { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the user id.
|
||||
/// </summary>
|
||||
public int UserId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the group id.
|
||||
/// </summary>
|
||||
public int GroupId { get; set; }
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the access mode in decimal (not octal!).
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// To see the octal representation use <c>Convert.ToString(Mode, 8)</c>.
|
||||
/// </remarks>
|
||||
public int Mode { get; set; }
|
||||
}
|
||||
|
||||
internal class ArFileInfoExtended : ArFileInfo
|
||||
{
|
||||
public long HeaderPosition { get; set; }
|
||||
|
||||
public long DataPosition { get; set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user