public void GetFileListTest() { UserRequest userService = new UserRequest(); userService.Login("sudodog", "ssss11111", out _); FileRequest fileRequest = new FileRequest(); fileRequest.GetFileList("/users/sudodog/测试数据/a lot of txt", out int status, out List <Response.FileListResponse.File> fileList); Console.WriteLine("文件数: " + fileList.Count); Assert.AreEqual(fileList.Count, 463); }
/// <summary> /// 获取云端文件信息 /// </summary> /// <returns></returns> public string getFileList() { if (userService == null) { return(null); } FileRequest fileRequest = new FileRequest(); fileRequest.GetFileList(currentPath, out int status, out List <Client.Request.Response.FileListResponse.File> fileList); CloudFileListVO cloudFileListVO = new CloudFileListVO(fileList); return(JsonConvert.SerializeObject(cloudFileListVO)); }