parameters: (self, opts)
return_statement: return super(ElfinderVolumeLocalFileSystem, self).mount(opts)
docstring: Override the original mount method so that
          ``path`` and ``URL`` settings point to the ``MEDIA_ROOT``
          and ``MEDIA_URL`` Django settings by default.
docstring_summary: Override the original mount method so that
          ``path`` and ``URL`` settings point to the ``MEDIA_ROOT``
          and ``MEDIA_URL`` Django settings by default.
docstring_tokens: Override the original mount method so that path and URL settings point to the MEDIA_ROOT and MEDIA_URL Django settings by default .
function: def mount(self, opts):
          """
          Override the original mount method so that
          ``path`` and ``URL`` settings point to the ``MEDIA_ROOT``
          and ``MEDIA_URL`` Django settings by default.
          """
  
          try:
              rootpath = opts['path']
          except KeyError:
              self._options['path'] = settings.MEDIA_ROOT
              rootpath = settings.MEDIA_ROOT
          
          #attempt to create root if it does not exist
          if not os.path.exists(rootpath):
              try:
                  os.makedirs(rootpath)
              except:
                  raise DirNotFoundError
              
          if not 'URL' in opts or not opts['URL']:
              self._options['URL'] = settings.MEDIA_URL
  
          return super(ElfinderVolumeLocalFileSystem, self).mount(opts)
function_tokens: def mount ( self , opts ) : try : rootpath = opts [ 'path' ] except KeyError : self . _options [ 'path' ] = settings . MEDIA_ROOT rootpath = settings . MEDIA_ROOT #attempt to create root if it does not exist if not os . path . exists ( rootpath ) : try : os . makedirs ( rootpath ) except : raise DirNotFoundError if not 'URL' in opts or not opts [ 'URL' ] : self . _options [ 'URL' ] = settings . MEDIA_URL return super ( ElfinderVolumeLocalFileSystem , self ) . mount ( opts )