sample_metadata/parser/generic_parser.py
def file_size(self, filename):
        """Get size of file in bytes"""
        path = self.file_path(filename)
        if path.startswith('gs://'):
            blob = self.get_blob(filename)
            return blob.size

        return os.path.getsize(path)
Get size of file in bytes
Get size of file in bytes
Get size of file in bytes
def file_size(self, filename):
        path = self.file_path(filename)
        if path.startswith('gs://'):
            blob = self.get_blob(filename)
            return blob.size
        return os.path.getsize(path)
def file_size ( self , filename ) : path = self . file_path ( filename ) if path . startswith ( 'gs://' ) : blob = self . get_blob ( filename ) return blob . size return os . path . getsize ( path )
Get size of file in bytes
Get size of file in bytes
"""Get size of file in bytes"""
self
filename