public function listFilesAction(Request $request)
    {
        if (!$request->get('paths')) {
            throw $this->createNotFoundException();
        }
        $files = $this->get('vince_type.manager.redactor')->listFiles($request->get('paths'));

        return new Response(json_encode($files, JSON_UNESCAPED_SLASHES), 200, array(
                'Content-Type' => 'application/json',
            )
        );
    }