def find_referenced_subfiles(self, directory):
        """
        Return list of files below specified `directory` in job inputs. Could
        use more sophisticated logic (match quotes to handle spaces, handle
        subdirectories, etc...).

        **Parameters**

        directory : str
            Full path to directory to search.

        """
        if directory is None:
            return []

        pattern = (directory, sep) % r"(%s%s\S+)"
        return self.find_pattern_references(pattern)
dataset/ETHPy150Open galaxyproject/pulsar/pulsar/client/staging/up.py/JobInputs.find_referenced_subfiles/swapped operands of `%`