@@ -11,35 +11,35 @@ public interface IAdapter : IDisposable
1111 string Prefix { get ; }
1212 string RootPath { get ; }
1313 public void Connect ( ) ;
14- IFile GetFile ( string path ) ;
15- Task < IFile > GetFileAsync ( string path , CancellationToken cancellationToken = default ) ;
16- IDirectory GetDirectory ( string path ) ;
17- Task < IDirectory > GetDirectoryAsync ( string path , CancellationToken cancellationToken = default ) ;
18- IEnumerable < IFile > GetFiles ( string path = "" ) ;
19- Task < IEnumerable < IFile > > GetFilesAsync ( string path = "" , CancellationToken cancellationToken = default ) ;
20- IEnumerable < IDirectory > GetDirectories ( string path = "" ) ;
21- Task < IEnumerable < IDirectory > > GetDirectoriesAsync ( string path = "" , CancellationToken cancellationToken = default ) ;
22- bool FileExists ( string path ) ;
23- Task < bool > FileExistsAsync ( string path , CancellationToken cancellationToken = default ) ;
24- bool DirectoryExists ( string path ) ;
25- Task < bool > DirectoryExistsAsync ( string path , CancellationToken cancellationToken = default ) ;
26- void CreateDirectory ( string path ) ;
27- Task CreateDirectoryAsync ( string path , CancellationToken cancellationToken = default ) ;
28- void DeleteFile ( string path ) ;
29- Task DeleteFileAsync ( string path , CancellationToken cancellationToken = default ) ;
30- void DeleteDirectory ( string path ) ;
31- Task DeleteDirectoryAsync ( string path , CancellationToken cancellationToken = default ) ;
32- byte [ ] ReadFile ( string path ) ;
33- Task < byte [ ] > ReadFileAsync ( string path , CancellationToken cancellationToken = default ) ;
34- string ReadTextFile ( string path ) ;
35- Task < string > ReadTextFileAsync ( string path , CancellationToken cancellationToken = default ) ;
36- void WriteFile ( string path , byte [ ] contents , bool overwrite = false ) ;
37- Task WriteFileAsync ( string path , byte [ ] contents , bool overwrite = false , CancellationToken cancellationToken = default ) ;
38- void WriteFile ( string path , string contents , bool overwrite = false ) ;
39- Task WriteFileAsync ( string path , string contents , bool overwrite = false , CancellationToken cancellationToken = default ) ;
40- void AppendFile ( string path , byte [ ] contents ) ;
41- Task AppendFileAsync ( string path , byte [ ] contents , CancellationToken cancellationToken = default ) ;
42- void AppendFile ( string path , string contents ) ;
43- Task AppendFileAsync ( string path , string contents , CancellationToken cancellationToken = default ) ;
14+ IFile GetFile ( string virtualPath ) ;
15+ Task < IFile > GetFileAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
16+ IDirectory GetDirectory ( string virtualPath ) ;
17+ Task < IDirectory > GetDirectoryAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
18+ IEnumerable < IFile > GetFiles ( string virtualPath = "" ) ;
19+ Task < IEnumerable < IFile > > GetFilesAsync ( string virtualPath = "" , CancellationToken cancellationToken = default ) ;
20+ IEnumerable < IDirectory > GetDirectories ( string virtualPath = "" ) ;
21+ Task < IEnumerable < IDirectory > > GetDirectoriesAsync ( string virtualPath = "" , CancellationToken cancellationToken = default ) ;
22+ bool FileExists ( string virtualPath ) ;
23+ Task < bool > FileExistsAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
24+ bool DirectoryExists ( string virtualPath ) ;
25+ Task < bool > DirectoryExistsAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
26+ void CreateDirectory ( string virtualPath ) ;
27+ Task CreateDirectoryAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
28+ void DeleteFile ( string virtualPath ) ;
29+ Task DeleteFileAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
30+ void DeleteDirectory ( string virtualPath ) ;
31+ Task DeleteDirectoryAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
32+ byte [ ] ReadFile ( string virtualPath ) ;
33+ Task < byte [ ] > ReadFileAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
34+ string ReadTextFile ( string virtualPath ) ;
35+ Task < string > ReadTextFileAsync ( string virtualPath , CancellationToken cancellationToken = default ) ;
36+ void WriteFile ( string virtualPath , byte [ ] contents , bool overwrite = false ) ;
37+ Task WriteFileAsync ( string virtualPath , byte [ ] contents , bool overwrite = false , CancellationToken cancellationToken = default ) ;
38+ void WriteFile ( string virtualPath , string contents , bool overwrite = false ) ;
39+ Task WriteFileAsync ( string virtualPath , string contents , bool overwrite = false , CancellationToken cancellationToken = default ) ;
40+ void AppendFile ( string virtualPath , byte [ ] contents ) ;
41+ Task AppendFileAsync ( string virtualPath , byte [ ] contents , CancellationToken cancellationToken = default ) ;
42+ void AppendFile ( string virtualPath , string contents ) ;
43+ Task AppendFileAsync ( string virtualPath , string contents , CancellationToken cancellationToken = default ) ;
4444 }
4545}
0 commit comments