(self, opts)
return super(ElfinderVolumeLocalFileSystem, self).mount(opts)
Override the original mount method so that
        ``path`` and ``URL`` settings point to the ``MEDIA_ROOT``
        and ``MEDIA_URL`` Django settings by default.
Override the original mount method so that
        ``path`` and ``URL`` settings point to the ``MEDIA_ROOT``
        and ``MEDIA_URL`` Django settings by default.
Override the original mount method so that path and URL settings point to the MEDIA_ROOT and MEDIA_URL Django settings by default .
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)
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 )