Пример #1
0
        public void NewFolderTest()
        {
            UserRequest userService = new UserRequest();

            userService.Login("sudodog", "ssss11111", out _);
            FileRequest fileRequest = new FileRequest();
            int         status      = fileRequest.NewFolder("/users/sudodog/defg", out _);

            Assert.AreEqual(status, 101);
        }
Пример #2
0
        /// <summary>
        /// 新建文件夹
        /// </summary>
        /// <param name="folderName"></param>
        /// <returns></returns>
        public string newFolder(string folderName)
        {
            if (userService == null)
            {
                return(null);
            }
            FileRequest fileRequest = new FileRequest();
            int         status      = fileRequest.NewFolder(currentPath + "/" + folderName, out UploadResponse result);

            Console.WriteLine("NewFolder");
            Console.WriteLine(result);
            return(result.status.ToString());
        }