Example #1
0
        internal async Task CreateDirectoryAsyncInternal(string devicePath)
        {
            Command c = _brick.NewCommand(CommandType.System);

            c.CreateDirectory(devicePath);
            var r = await _brick.SendCommandAsyncInternal(c);

            if (r.SystemReplyStatus != SystemReplyStatus.Success)
            {
                throw new Exception("Error creating directory: " + r.SystemReplyStatus);
            }
        }
Example #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);
            }
        }
		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);
		}