addons14/storage_backend/components/base_adapter.py
def find_files(self, pattern, relative_path="", **kwargs):
        """Find files matching given pattern.

        :param pattern: regex expression
        :param relative_path: optional relative path containing files
        :return: list of file paths as full paths from the root
        """
        regex = re.compile(pattern)
        filelist = self.list(relative_path)
        files_matching = [
            regex.match(file_).group() for file_ in filelist if regex.match(file_)
        ]
        filepaths = []
        if files_matching:
            filepaths = [
                os.path.join(self._fullpath(relative_path) or "", filename)
                for filename in files_matching
            ]
        return filepaths
Find files matching given pattern.

        :param pattern: regex expression
        :param relative_path: optional relative path containing files
        :return: list of file paths as full paths from the root
        
Find files matching given pattern.
Find files matching given pattern .
def find_files(self, pattern, relative_path="", **kwargs):
        regex = re.compile(pattern)
        filelist = self.list(relative_path)
        files_matching = [
            regex.match(file_).group() for file_ in filelist if regex.match(file_)
        ]
        filepaths = []
        if files_matching:
            filepaths = [
                os.path.join(self._fullpath(relative_path) or "", filename)
                for filename in files_matching
            ]
        return filepaths
def find_files ( self , pattern , relative_path = "" , ** kwargs ) : regex = re . compile ( pattern ) filelist = self . list ( relative_path ) files_matching = [ regex . match ( file_ ) . group ( ) for file_ in filelist if regex . match ( file_ ) ] filepaths = [ ] if files_matching : filepaths = [ os . path . join ( self . _fullpath ( relative_path ) or "" , filename ) for filename in files_matching ] return filepaths
Find files matching given pattern.
Find files matching given pattern .
"""Find files matching given pattern.

        :param pattern: regex expression
        :param relative_path: optional relative path containing files
        :return: list of file paths as full paths from the root
        """
list of file paths as full paths from the root
list of file paths as full paths from the root
self
pattern
None
relative_path
optional relative path containing files
optional relative path containing files