forked from gordon-matt/elFinder.NetCore
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIFile.cs
More file actions
40 lines (22 loc) · 676 Bytes
/
Copy pathIFile.cs
File metadata and controls
40 lines (22 loc) · 676 Bytes
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
using elFinder.NetCore.Models;
namespace elFinder.NetCore.Drivers;
public interface IFile
{
FileAttributes Attributes { get; set; }
IDirectory Directory { get; }
string DirectoryName { get; }
Task<bool> ExistsAsync { get; }
string Extension { get; }
string FullName { get; }
Task<DateTime> LastWriteTimeUtcAsync { get; }
Task<long> LengthAsync { get; }
string Name { get; }
MimeType MimeType { get; }
IFile Open(string path);
Task<Stream> CreateAsync();
Task DeleteAsync();
Task<Stream> OpenReadAsync();
Task PutAsync(string content);
Task PutAsync(Stream stream);
Task RefreshAsync();
}