如何使用openFile查看文件夹中的所有文件? [英] How to view all files within a folder using openFile?
本文介绍了如何使用openFile查看文件夹中的所有文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我正在使用以下代码打开特定文件夹的对话框. 当前正在显示所有.jpg文件.如何使其显示所有文件?
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:
推荐答案
Ignition的支持小组说使用以下脚本.
Ignition's support team said to use the following script.
path = system.file.openFile(None,'J:\FULLSAIL\Historian')
我进行了测试,它的工作原理似乎与我希望的完全一样. 请注意,术语无"必须首字母大写,我首先尝试了否",但系统无法识别该cmd. 谢谢大家的帮助.
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.
这篇关于如何使用openFile查看文件夹中的所有文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文