ProjectArcade
54 строки · 2.0 Кб
1using System;2using System.Diagnostics;3using System.IO;4using System.Runtime.InteropServices;5
6namespace DokanNet7{
8/// <summary>9/// Used to provide file information to %Dokan during operations by10/// - <see cref="IDokanOperations.GetFileInformation"/>11/// - <see cref="IDokanOperations.FindFiles"/>12/// - <see cref="IDokanOperations.FindStreams"/>13/// - <see cref="IDokanOperations.FindFilesWithPattern"/>.14/// </summary>15[StructLayout(LayoutKind.Auto)]16[DebuggerDisplay("{FileName}, {Length}, {CreationTime}, {LastWriteTime}, {LastAccessTime}, {Attributes}")]17public struct FileInformation18{19/// <summary>20/// Gets or sets the name of the file or directory.21/// <see cref="IDokanOperations.GetFileInformation"/> required the file path22/// when other operations only need the file name.23/// </summary>24public string FileName { get; set; }25
26/// <summary>27/// Gets or sets the <c><see cref="FileAttributes"/></c> for the file or directory.28/// </summary>29public FileAttributes Attributes { get; set; }30
31/// <summary>32/// Gets or sets the creation time of the file or directory.33/// If equal to <c>null</c>, the value will not be set or the file has no creation time.34/// </summary>35public DateTime? CreationTime { get; set; }36
37/// <summary>38/// Gets or sets the last access time of the file or directory.39/// If equal to <c>null</c>, the value will not be set or the file has no last access time.40/// </summary>41public DateTime? LastAccessTime { get; set; }42
43/// <summary>44/// Gets or sets the last write time of the file or directory.45/// If equal to <c>null</c>, the value will not be set or the file has no last write time.46/// </summary>47public DateTime? LastWriteTime { get; set; }48
49/// <summary>50/// Gets or sets the length of the file.51/// </summary>52public long Length { get; set; }53}54}