8import isystem.connect
as ic
15 connMgr = ic.ConnectionMgr()
18 connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
20 rfCtrl = ic.CRemoteFileController(connMgr)
22 with tempfile.TemporaryDirectory()
as tmpDirPath:
23 filePath = os.path.join(tmpDirPath,
"localFile.txt")
24 rfCtrl = ic.CRemoteFileController(connMgr)
26 rfCtrl.readFromRemote(
"src/main.cpp", filePath)
27 print(f
"Remote file read into: {filePath}")
29 print(f
"Writing local file back to remote 'src/main.cpp'...")
30 rfCtrl.writeToRemote(filePath,
"src/main_write_back.cpp")
33if __name__ ==
"__main__":