That's how I upload a file to the Yandex disk.

system ("curl --user $yadisk_email:$yadisk_pass -T $file https://webdav.yandex.ru/$yadisc_dir"); 

Is it also possible to simply create a folder on the Yandex disk? If not, what is the easiest way tell me?

    1 answer 1

    Try it like this

     system ("curl -X MKCOL --user $yadisk_email:$yadisk_pass https://webdav.yandex.ru/$new_dir"); 

    Read more here .

    • Thank you very much! Everything works fine. You are my savior. - damager9408