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
44 lines (27 loc) · 819 Bytes
/
Copy pathIFile.cs
File metadata and controls
44 lines (27 loc) · 819 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
41
42
43
44
using System;
using System.IO;
using System.Threading.Tasks;
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();
}
}