ProjectArcade

Форк
0
54 строки · 2.0 Кб
1
using System;
2
using System.Diagnostics;
3
using System.IO;
4
using System.Runtime.InteropServices;
5

6
namespace DokanNet
7
{
8
    /// <summary>
9
    /// Used to provide file information to %Dokan during operations by
10
    ///  - <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}")]
17
    public struct FileInformation
18
    {
19
        /// <summary>
20
        /// Gets or sets the name of the file or directory.
21
        /// <see cref="IDokanOperations.GetFileInformation"/> required the file path
22
        /// when other operations only need the file name.
23
        /// </summary>
24
        public string FileName { get; set; }
25

26
        /// <summary>
27
        /// Gets or sets the <c><see cref="FileAttributes"/></c> for the file or directory.
28
        /// </summary>
29
        public 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>
35
        public 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>
41
        public 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>
47
        public DateTime? LastWriteTime { get; set; }
48

49
        /// <summary>
50
        /// Gets or sets the length of the file.
51
        /// </summary>
52
        public long Length { get; set; }
53
    }
54
}

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.