Sample directory generator