-
Notifications
You must be signed in to change notification settings - Fork 114
/
Copy pathFileInformation.cs
52 lines (46 loc) · 1.89 KB
/
FileInformation.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
using System;
using System.Diagnostics;
using System.IO;
using System.Runtime.InteropServices;
namespace DokanNet
{
/// <summary>
/// Used to provide file information to %Dokan during operations by
/// - <see cref="IDokanOperations.GetFileInformation"/>
/// - <see cref="IDokanOperations.FindFiles"/>
/// - <see cref="IDokanOperations.FindStreams"/>
/// - <see cref="IDokanOperations.FindFilesWithPattern"/>.
/// </summary>
[StructLayout(LayoutKind.Auto)]
[DebuggerDisplay("{FileName}, {Length}, {CreationTime}, {LastWriteTime}, {LastAccessTime}, {Attributes}")]
public struct FileInformation
{
/// <summary>
/// Gets or sets the name of the file or directory.
/// </summary>
public string FileName { get; set; }
/// <summary>
/// Gets or sets the <c><see cref="FileAttributes"/></c> for the file or directory.
/// </summary>
public FileAttributes Attributes { get; set; }
/// <summary>
/// Gets or sets the creation time of the file or directory.
/// If equal to <c>null</c>, the value will not be set or the file has no creation time.
/// </summary>
public DateTime? CreationTime { get; set; }
/// <summary>
/// Gets or sets the last access time of the file or directory.
/// If equal to <c>null</c>, the value will not be set or the file has no last access time.
/// </summary>
public DateTime? LastAccessTime { get; set; }
/// <summary>
/// Gets or sets the last write time of the file or directory.
/// If equal to <c>null</c>, the value will not be set or the file has no last write time.
/// </summary>
public DateTime? LastWriteTime { get; set; }
/// <summary>
/// Gets or sets the length of the file.
/// </summary>
public long Length { get; set; }
}
}