internal async Task CreateDirectoryAsyncInternal(string devicePath) { Response r = ResponseManager.CreateResponse(); Command c = new Command(CommandType.SystemReply); c.CreateDirectory(devicePath); await _brick.SendCommandAsyncInternal(c); if (r.SystemReplyStatus != SystemReplyStatus.Success) { throw new Exception("Error creating directory: " + r.SystemReplyStatus); } }
internal async Task CreateDirectoryAsyncInternal(string devicePath) { Response r = ResponseManager.CreateResponse(); Command c = new Command(CommandType.SystemReply); c.CreateDirectory(devicePath); await _brick.SendCommandAsyncInternal(c); if(r.SystemReplyStatus != SystemReplyStatus.Success) throw new Exception("Error creating directory: " + r.SystemReplyStatus); }