7import isystem.connect
as ic
14 connMgr = ic.ConnectionMgr()
17 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
19 rfCtrl = ic.CRemoteFileController(connMgr)
21 print(f
"Writing local 'main.cpp' file to remote...")
22 wksFolderPath = ic.CIDEController(connMgr).getPath(ic.CIDEController.WORKSPACE_DIR)
23 localFilePath = os.path.join(wksFolderPath,
"src",
"main.cpp")
24 remoteFilePath = os.path.join(wksFolderPath,
"remoteTestFile.txt")
25 rfCtrl.writeToRemote(localFilePath, remoteFilePath)
27 print(f
"Removing remote file: {remoteFilePath}")
28 rfCtrl.remove(remoteFilePath)
31if __name__ ==
"__main__":