bibliotekar.fs.FileType#
- class bibliotekar.fs.FileType(*values)[source]#
Enum of file types.
- __init__(*args, **kwds)#
Methods
guess_from_path
(path)Guess the type of a file.
suffixes
()Return a list of file suffixes for the file type.
Attributes
A Jupyter notebook.
A Python script.
A Jupyter notebook template.
An unknown file type.
- Notebook = 'notebook'#
A Jupyter notebook.
- NotebookTemplate = 'notebook_template'#
A Jupyter notebook template.
- PythonScript = 'python_script'#
A Python script.
- Unknown = 'unknown'#
An unknown file type.