forked from ServiceStack/ServiceStack
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathIVirtualPathProvider.cs
More file actions
31 lines (23 loc) · 974 Bytes
/
IVirtualPathProvider.cs
File metadata and controls
31 lines (23 loc) · 974 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
using System;
using System.Collections.Generic;
namespace ServiceStack.IO
{
public interface IVirtualPathProvider
{
IVirtualDirectory RootDirectory { get; }
string VirtualPathSeparator { get; }
string RealPathSeparator { get; }
string CombineVirtualPath(string basePath, string relativePath);
bool FileExists(string virtualPath);
bool DirectoryExists(string virtualPath);
IVirtualFile GetFile(string virtualPath);
string GetFileHash(string virtualPath);
string GetFileHash(IVirtualFile virtualFile);
IVirtualDirectory GetDirectory(string virtualPath);
IEnumerable<IVirtualFile> GetAllMatchingFiles(string globPattern, int maxDepth = Int32.MaxValue);
IEnumerable<IVirtualFile> GetRootFiles();
IEnumerable<IVirtualDirectory> GetRootDirectories();
bool IsSharedFile(IVirtualFile virtualFile);
bool IsViewFile(IVirtualFile virtualFile);
}
}