def main()

in Shared_Processors/DirectoryList.py [0:0]


    def main(self):
        pattern = self.env.get("pattern")
        method = self.env.get("find_method")

        format_string = "%s" % self.env["suffix_string"]
        search_string = "{0}"
        if method == "glob":
            self.env["found_filenames"] = search_string.format(
                format_string.join(self.globfind(pattern))
            ).strip()
        else:
            raise ProcessorError("Unsupported find_method: %s" % method)
        self.output("Found matches: %s" % self.env["found_filenames"])