/// <summary> /// Create a new directory. /// </summary> /// <param name="directoryPath">The destination directory path.</param> public void CreateDirectory(string directoryPath) { if (_scp.Connected) { // Get the list. _scp.Mkdir(directoryPath); } else { throw new Exception("An active connection does not exist."); } }