winIDEA SDK
Loading...
Searching...
No Matches
test_exists.py
# This script is licensed under BSD License, see file LICENSE.txt, or search for `License` in the SDK online help.
#
# (c) TASKING Germany GmbH, 2023
import isystem.connect as ic
winidea_id = ''
def test_exists():
connMgr = ic.ConnectionMgr()
# normally, here you would do connection to a remote winIDEA
# for this test, local winIDEA is used
connMgr.connect(ic.CConnectionConfig().instanceId(winidea_id))
rfCtrl = ic.CRemoteFileController(connMgr)
print(f"File 'main.cpp' exists: {rfCtrl.exists('src/main.cpp')}")
if __name__ == "__main__":
test_exists()