Пример #1
0
        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);
            }
        }
Пример #2
0
		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);
		}