class_docstr: A bytecode cache that stores bytecode on the filesystem.  It accepts
  two arguments: The directory where the cache items are stored and a
  pattern string that is used to build the filename.
  
  If no directory is specified a default cache directory is selected.  On
  Windows the user's temp directory is used, on UNIX systems a directory
  is created for the user in the system temp directory.
  
  The pattern can be used to have multiple separate caches operate on the
  same directory.  The default pattern is ``'__jinja2_%s.cache'``.  ``%s``
  is replaced with the cache key.
  
  >>> bcc = FileSystemBytecodeCache('/tmp/jinja_cache', '%s.cache')
  
  This bytecode cache supports clearing of the cache using the clear method.
class_docstr_tok: ["A","bytecode","cache","that","stores","bytecode","on","the","filesystem",".","It","accepts","two","arguments",":","The","directory","where","the","cache","items","are","stored","and","a","pattern","string","that","is","used","to","build","the","filename",".","If","no","directory","is","specified","a","default","cache","directory","is","selected",".","On","Windows","the","user","'s","temp","directory","is","used",",","on","UNIX","systems","a","directory","is","created","for","the","user","in","the","system","temp","directory",".","The","pattern","can","be","used","to","have","multiple","separate","caches","operate","on","the","same","directory",".","The","default","pattern","is","``","'__jinja2_","%","s.cache","'","``",".","``","%","s","``","is","replaced","with","the","cache","key",".",">",">",">","bcc","=","FileSystemBytecodeCache","(","'\/tmp\/jinja_cache","'",",","'","%","s.cache","'",")","This","bytecode","cache","supports","clearing","of","the","cache","using","the","clear","method","."]
code: def clear(self):
      # imported lazily here because google app-engine doesn't support
      # write access on the file system and the function does not exist
      # normally.
      from os import remove
  
      files = fnmatch.filter(
          listdir(self.directory), self.pattern % "*"
      )
      for filename in files:
          try:
              remove(path.join(self.directory, filename))
          except OSError:
              pass
  
imports: import errno
  import fnmatch
  import os
  import stat
  import sys
  import tempfile
  from hashlib import sha1
  from os import listdir
  from os import path
  from ._compat import BytesIO
  from ._compat import marshal_dump
  from ._compat import marshal_load
  from ._compat import pickle
  from ._compat import text_type
  from .utils import open_if_exists
label_desc: Use image node_id 6 for calling the FileSystemBytecodeCache obj's underlying member method code with example usage: obj.clear() without return types