diff options
| author | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-25 00:26:47 +0200 |
|---|---|---|
| committer | Roy Ben Shabat <Roy.mail.net@gmail.com> | 2020-03-25 00:26:47 +0200 |
| commit | 42c06402ff6648c356fba8315958283762ed2542 (patch) | |
| tree | 24edf6b746afef0f3a7887e8d83d371d3cf351dc /Software/Visual_Studio/Tango.FileSystem/FileSystemManager.cs | |
| parent | c7ceaf96e0ae6d8cb0e1ae7373e6a054f72f52cd (diff) | |
| download | Tango-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.cs | 17 |
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 + }); + } } } |
