pythonignition

How to view all files within a folder using openFile?


I'm using the following code to open a dialog box to a specific folder. It is currently displaying all .jpg files. How do I make it show all files?

path = system.file.openFile('jpg', 'J:\FULLSAIL\Historian')
if path != None:

enter image description here


Solution

  • Ignition's support team said to use the following script.

    path = system.file.openFile(None,'J:\FULLSAIL\Historian')
    

    I tested and it seems to work exactly like I was hoping. One note, the term None must be have the first N capitalized, I first tried none and the system did not recognize the cmd. Thank you all for your help.