Deprecated contentFileDirectory method

Hi,

This might be a simple question but I can’t find the answer in the docs.

On an old K3 site I am using the following:

kirby()->user()->setting()->toPage()->contentFileDirectory()

This is part of a file upload setup. I am updating to K4 and am getting a debugger message saying the contentFileDirectory() method is deprecated. What should I be replacing this with?

$page->root() should do the same

Just the job, thank you