diff options
Diffstat (limited to 'Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs')
| -rw-r--r-- | Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs index 1f6641f3a..b13b797e9 100644 --- a/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs +++ b/Software/Visual_Studio/FSE/Tango.FSE.UI/FileSystem/DefaultFileSystemProvider.cs @@ -399,5 +399,16 @@ namespace Tango.FSE.UI.FileSystem Path = item.Path }, new TransportRequestConfig() { Timeout = TimeSpan.FromSeconds(120) }); } + + public async Task<FolderItem> CreateFolder(FileSystemItem parent, string folderName) + { + var response = await _machineProvider.MachineOperator.SendGenericRequest<CreateFolderRequest, CreateFolderResponse>(new CreateFolderRequest() + { + Path = parent.Path, + FolderName = folderName, + }); + + return FileSystemItem.FromDTO(response.FolderItem) as FolderItem; + } } } |
