sample_metadata/parser/generic_parser.py
def file_path(self, filename: str) -> str:
        """
        Get complete filepath of filename:
        - Includes gs://{bucket} if relevant
        - Includes path_prefix decided early on
        """
        if filename.startswith('gs://'):
            return filename

        if self.client and not filename.startswith('/'):
            return os.path.join(
                'gs://', self.default_bucket or '', self.path_prefix or '', filename or ''
            )

        return os.path.join(self.path_prefix or '', filename)

        Get complete filepath of filename:
        - Includes gs://{bucket} if relevant
        - Includes path_prefix decided early on
        
Get complete filepath of filename:
Includes gs://{bucket} if relevant
Includes path_prefix decided early on
Get complete filepath of filename : Includes gs : // { bucket } if relevant Includes path_prefix decided early on
def file_path(self, filename: str) -> str:
        if filename.startswith('gs://'):
            return filename
        if self.client and not filename.startswith('/'):
            return os.path.join(
                'gs://', self.default_bucket or '', self.path_prefix or '', filename or ''
            )
        return os.path.join(self.path_prefix or '', filename)
def file_path ( self , filename : str ) -> str : if filename . startswith ( 'gs://' ) : return filename if self . client and not filename . startswith ( '/' ) : return os . path . join ( 'gs://' , self . default_bucket or '' , self . path_prefix or '' , filename or '' ) return os . path . join ( self . path_prefix or '' , filename )
Get complete filepath of filename:
 Includes gs://{bucket} if relevant
 Includes path_prefix decided early on
Get complete filepath of filename : Includes gs : // { bucket } if relevant Includes path_prefix decided early on
"""
        Get complete filepath of filename:
        - Includes gs://{bucket} if relevant
        - Includes path_prefix decided early on
        """
self
filename
str