WebDAV Ya.Disk and Flysystem: why directories are created and files not copied?

Use in Laravel Flysystem.
The task is to copy a file from local storage to Ya. Disk via WebDAV.
Problem: when I try to transfer a file to Yandex disk, create the correct directory, but the files are not copied..

use Sabre\DAV\Client as WebDAVClient;
use League\Flysystem\Filesystem;
use League\Flysystem\Adapter\Local as LocalAdapter;
use League\Flysystem\WebDAV\WebDAVAdapter as WebDAVAdapter;
use League\Flysystem\MountManager;


$manager = new MountManager();
$local = new Filesystem(new LocalAdapter(storage_path()));
$manager->mountFilesystem('local', $local);

$webdav_adapter = new WebDAVAdapter(
 new WebDAVClient([
 'baseUri' => 'https://webdav.yandex.ru',
 'userName' => env('YANDEX_DISK_LOGIN'),
 'password' => env('YANDEX_DISK_PASSWORD'),
, '/');
$webdav = new Filesystem($webdav_adapter);
$manager->mountFilesystem('webdav', $webdav);


$local_path = 'local://' . 'app/public/dicoms/1.dcm';
$cloud_path = 'webdav://' . 'archive/12345/dicoms/1.dcm';
$res = $manager->copy( $local_path, $cloud_path );

The results of the run-on Yandex.The disk creates an empty folder "archive/12345/dicoms/"
June 3rd 19 at 19:30
2 answers
June 3rd 19 at 19:32
It is better not to use Adisc, the official documentation does not match the actual API, and I can change the API without backward compatibility and warnings. Communication with tech support leads nowhere.

Here you can see an example of attempts to communicate with support on a similar issue.
:( - Braulio.Balistreri12 commented on June 3rd 19 at 19:35

Find more questions by tags File systemsLaravelYandex.DiskWebDAVYandex