aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.FileSystem
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-22 14:53:04 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-22 14:53:04 +0200
commit5a5b63afd5c4ff1d6a1dbd6996ed0a5a494387d0 (patch)
tree365313831f036950a1878a8ccd92ab938a7bfabb /Software/Visual_Studio/Tango.FileSystem
parentd48b2d23515d06a21ad241380986bf8f31773195 (diff)
downloadTango-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.cs22
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))