$storage = StorageFactory::create(
StorageTypeEnum::WEB_DAV(),
'https://webdav.example.com',
[
'prefix' => 'basePathToWebDAV/',
'userName' => 'user',
'password' => 'password',
]
);
$this->storage->download('remotePathInsideWebDAV/test.txt', 'localPath/test.txt');
$content = $this->storage->downloadContent('remotePathInsideWebDAV/test.txt');
$localFile = new \SplFileInfo('localPath/');
storage->syncRemoteToLocal('remotePathInsideWebDAVRoot/', $localFile,true);