aboutsummaryrefslogtreecommitdiffstats
path: root/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs
diff options
context:
space:
mode:
authorRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-25 00:26:47 +0200
committerRoy Ben Shabat <Roy.mail.net@gmail.com>2020-03-25 00:26:47 +0200
commit42c06402ff6648c356fba8315958283762ed2542 (patch)
tree24edf6b746afef0f3a7887e8d83d371d3cf351dc /Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs
parentc7ceaf96e0ae6d8cb0e1ae7373e6a054f72f52cd (diff)
downloadTango-42c06402ff6648c356fba8315958283762ed2542.tar.gz
Tango-42c06402ff6648c356fba8315958283762ed2542.zip
Added Download menu implementation to file system.
Added several stun and turn servers to web rtc.
Diffstat (limited to 'Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs')
-rw-r--r--Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs17
1 files changed, 17 insertions, 0 deletions
diff --git a/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs b/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs
index f72785f81..46ca080a2 100644
--- a/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs
+++ b/Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs
@@ -181,5 +181,22 @@ namespace Tango.FileSystem
throw new FileNotFoundException("Could not locate the source file or folder.");
}
}
+
+ public FileSystemItemDTO CreateFolder(String path, String folderName)
+ {
+ String fullPath = Path.Combine(path, folderName);
+
+ if (Directory.Exists(fullPath))
+ {
+ throw new IOException("The specified directory name already exists.");
+ }
+
+ Directory.CreateDirectory(fullPath);
+
+ return GetFolder(new GetFileSystemItemRequest()
+ {
+ Path = fullPath
+ });
+ }
}
}