store: fix recursive/dir arguments

The arguments of the function in the interface vs. the implementation were inadvertently swapped.