|
@ -38,6 +38,8 @@ def getFiles(msg, path, pattern, conn): |
|
|
verify = int(job.getDebugLevel("file_tool")) |
|
|
verify = int(job.getDebugLevel("file_tool")) |
|
|
out = [] |
|
|
out = [] |
|
|
msg.debug(verify, "getFiles " + path + " , " + pattern) |
|
|
msg.debug(verify, "getFiles " + path + " , " + pattern) |
|
|
|
|
|
if not os.path.exists(path): |
|
|
|
|
|
return out |
|
|
for f in os.listdir(path): |
|
|
for f in os.listdir(path): |
|
|
msg.debug(verify, "getFiles " + f) |
|
|
msg.debug(verify, "getFiles " + f) |
|
|
if re.search(pattern, f): |
|
|
if re.search(pattern, f): |
|
|