directory theme post-thumbnails support

How to add theme support for post-thumbnails? This doesn't work in functions.php or in /core/core.php

add_theme_support( 'post-thumbnails' );
add_theme_support( 'post-thumbnails', array 'directory_listing' );