extension property

extension property

Gets the file name suffix (including the period “.”) e.g., “.doc”.

Definition:

@property
def extension(self):
    ...

See Also