public function handleFolders(SS_HTTPRequest $request)
    {
        $result = array();

        foreach (Folder::get() as $folder) {
            $result[] = array(
                'id' => $folder->ID,
                'filename' => $folder->Filename
            );
        }

        $response = new SS_HTTPResponse(
            Convert::array2json($result), 200
        );

        return $response->addHeader('Content-Type', 'application/json');
    }