extension¶
- FilenameParts.extension¶
The common file extension with a leading dot.
Notes
The extension states how the content is encoded and which structure it has.
Examples
A file ending with ‘.txt’ is a plain text file, which is encoded with ‘utf-8’ in best case.
A file ending with ‘.csv’ is a plain text file, which contains a table having ‘comma seperated values’. Other examples are common formats like .json or .yml.
Instead of creating non-common file endings for custom text based file formats. The text files should end with ‘.txt’. To state the custom content the context file part can be used.
- Returns
str