$user = 'john_doe'; // username $storage = \OC\Files\Filesystem::getStorage($user);
$path = '/files/photos'; // relative path to folder $storage = \OC\Files\Filesystem::getStorage($path);In this example, we retrieve the storage location for the folder "photos" within the user's files directory. This allows us to work with the files and directories stored in that specific folder. Overall, the oc.files Filesystem package library provides a convenient way to interact with files and directories in an ownCloud installation using PHP.