public void DeleteTest() { UserRequest userService = new UserRequest(); userService.Login("sudodog", "ssss11111", out _); FileRequest fileRequest = new FileRequest(); int status = fileRequest.Delete(out _, "/users/sudodog/defg"); //int status = fileRequest.Delete(out _, "", "/users/sudodog/测试数据/test/delTest.txt"); Assert.AreEqual(status, 0); }
/// <summary> /// 删除文件 /// </summary> /// <param name="fileName"></param> /// <returns></returns> public string deleteFile(string fileName) { if (userService == null) { return(null); } FileRequest fileRequest = new FileRequest(); int status = fileRequest.Delete(out _, fileName); return(status.ToString()); return(null); }