# Temporary Filesystem¶

Manage filesystems in temporary locations.

A temporary filesytem is stored in a location defined by your OS (/tmp on linux). The contents are deleted when the filesystem is closed.

A TempFS is a good way of preparing a directory structure in advance, that you can later copy. It can also be used as a temporary data store.

class fs.tempfs.TempFS(identifier=u'__tempfs__', temp_dir=None, auto_clean=True, ignore_clean_errors=True)[source]

A temporary filesystem on the OS.

Parameters: identifier (str) – A string to distinguish the directory within the OS temp location, used as part of the directory name. temp_dir (str, optional) – An OS path to your temp directory (leave as None to auto-detect) auto_clean (bool) – If True (the default), the directory contents will be wiped on close. ignore_clean_errors (bool) – If True (the default), any errors in the clean process will be suppressed. If False, they will be raised.
clean()[source]

Clean (delete) temporary files created by this filesystem.
{"extraction_info": {"found_math": true, "script_math_tex": 0, "script_math_asciimath": 0, "math_annotations": 0, "math_alttext": 0, "mathml": 0, "mathjax_tag": 0, "mathjax_inline_tex": 0, "mathjax_display_tex": 0, "mathjax_asciimath": 1, "img_math": 0, "codecogs_latex": 0, "wp_latex": 0, "mimetex.cgi": 0, "/images/math/codecogs": 0, "mathtex.cgi": 0, "katex": 0, "math-container": 0, "wp-katex-eq": 0, "align": 0, "equation": 0, "x-ck12": 0, "texerror": 0, "math_score": 0.3003920912742615, "perplexity": 9338.071494612073}, "config": {"markdown_headings": true, "markdown_code": true, "boilerplate_config": {"ratio_threshold": 0.18, "absolute_threshold": 10, "end_threshold": 15, "enable": true}, "remove_buttons": true, "remove_image_figures": true, "remove_link_clusters": true, "table_config": {"min_rows": 2, "min_cols": 3, "format": "plain"}, "remove_chinese": true, "remove_edit_buttons": true, "extract_latex": true}, "warc_path": "s3://commoncrawl/crawl-data/CC-MAIN-2019-18/segments/1555578762045.99/warc/CC-MAIN-20190426073513-20190426095513-00155.warc.gz"}