use \OC\Files\Filesystem; $view = Filesystem::getView();
use \OC\Files\Filesystem; $path = '/my/directory'; $view = Filesystem::getView(); $view->chroot($path);
use \OC\Files\Filesystem; $path = '/my/directory/myfile.txt'; $view = Filesystem::getView(); $fullpath = $view->getAbsolutePath($path);In summary, the `oc.files` package library in PHP provides a variety of functions for working with the filesystem, and `getView` is a particularly useful one for managing files and directories.