utils.extract_filename#

Back to Module page

Summary#

Extracts the filename from a string representation of a buffer object

Signature#

def extract_filename(fname)
Input variables#

Name

Type

Default

Description

fname

String

Output variables#

Return annotation

Docstring type

Description

None

Filename if found, or the original string

Docstring#

Extracts the filename from a string representation of a buffer object
:param fname: String
:return: Filename if found, or the original string