diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-22 14:53:04 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-22 14:53:04 +0200 |
| commit | 5a5b63afd5c4ff1d6a1dbd6996ed0a5a494387d0 (patch) | |
| tree | 365313831f036950a1878a8ccd92ab938a7bfabb /Software/Visual_Studio/Tango.FileSystem | |
| parent | d48b2d23515d06a21ad241380986bf8f31773195 (diff) | |
| download | Tango-5a5b63afd5c4ff1d6a1dbd6996ed0a5a494387d0.tar.gz Tango-5a5b63afd5c4ff1d6a1dbd6996ed0a5a494387d0.zip | |
Working on storage provider.
Diffstat (limited to 'Software/Visual_Studio/Tango.FileSystem')
| -rw-r--r-- | Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs b/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs index b8e59c322..c18df97c9 100644 --- a/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs +++ b/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs @@ -92,6 +92,28 @@ namespace Tango.FileSystem }; } + public Task<FileSystemItem> GetFolder(String path) + { + return Task.Factory.StartNew<FileSystemItem>(() => + { + return FileSystemItem.FromDTO(GetFolder(new GetFileSystemItemRequest() + { + Path = path, + })); + }); + } + + public Task<FileSystemItem> GetFolder(Environment.SpecialFolder specialFolder) + { + return Task.Factory.StartNew<FileSystemItem>(() => + { + return FileSystemItem.FromDTO(GetFolder(new GetFileSystemItemRequest() + { + SpecialFolder = specialFolder + })); + }); + } + public void Delete(String path) { if (Directory.Exists(path)) |
