         XCTAssertEqual(error.code, SSHKitSFTPErrorCode.NoSuchFile.rawValue)
     }
     
-    func testUnlik() {
-        // TODO create file
-        let path = "./remove.txt"
-        var error = channel!.unlink(path)
-        if let error=error {
-            XCTFail(error.description)
-        }
-        
-        error = channel!.unlink(path)
-        XCTAssertEqual(error.code, SSHKitSFTPErrorCode.NoSuchFile.rawValue)  // folder existed
-    }
-
 
 }

    }
    
    func testChmod() {
        let path = "./file.txt"
        let error = channel!.chmod(path, mode: 0o700)
        
        if let error=error {
            // TODO remove folder
            XCTFail(error.description)
        }
        

    }
    
    func testRename() {
        let oldName = filePathForTest
        let newName = "./renamed.txt"
        let error = channel!.rename(oldName, newName: newName)
        
        if let error=error {
            XCTFail(error.description)
        }
        
        unlink(newName)  // clean test file
    }
    
    func testMkdir() {
        let path = newFolderPathForTest
        
        var error = channel!.mkdir(path, mode: 0o755)
        if let error=error {
            XCTFail(error.description)
        }
        
        error = channel!.mkdir(path, mode: 0o755)
        XCTAssertEqual(error.code, SSHKitSFTPErrorCode.FileAlreadyExists.rawValue)  // folder existed
    }
    
    func testRmdir() {
        let path = folderPathForTest
        var error = channel!.rmdir(path)

        if let error=error {
            XCTFail(error.description)
        }
