def file_browser(request, path='/'):
 directories = DojoFileStore(path, dirsonly=False, root=request.GET.get('root', '/')).items()
 context = directories
 content = json.dumps(context)
 return HttpResponse(content, content_type='application/json')

def file_browser ( request , path = '/' ) : directories = DojoFileStore ( path , dirsonly = False , root = request . GET . get ( 'root' , '/' ) ) . items ( ) context = directories content = json . dumps ( context ) return HttpResponse ( content , content_type = 'application/json' )
this view provides the ajax driven directory browser callback .