I want to search a Perforce depot for files.
I do this from a python script and use the p4python
library command:
list = p4.run("files", "//mypath/myfolder/*")
This works fine as long as myfolder
contains some files. I get a python list
as a return value. But when there is no file in myfolder
the program stops running and no error message is displayed. My goal is to get an empty python list
, so that I can see that this folder doesn't contain any files.
Does anybody has some ideas? I could not find information in the p4
files documentation and on StackOverflow.