array('message'=> $l->t('Directory does not exist!')) ) ); } else { Config::set('root_path', $rootPath); \OCP\JSON::success( array( 'data' => array('message'=> $l->t('Settings updated successfully.')) ) ); } Config::set('enable', $opdsEnable); Config::set('file_types', $fileTypes); Config::set('id', Util::genUuid()); exit(); } exit();