Return 1 if success $disk->uploadFile(-file => '/root/upload', -remote_path => 'Temp', -overwrite => 0)
Upload file (-file) to Yandex Disk in folder (-remote_path). Return disk info data as hashref my $info = $disk->getDiskInfo() įacebook 'disk:/Социальные сети/Facebook', My $publicUrl = $public->publicUrl() or die 'Cant get public url' METHODS getDiskInfo() path => '/Upload/my_test_upload_file', # Path to file, which need share recursive => 1, # Recursive create folder path => '/Temp/new_folder', # Path to new folder on Yandex Disk file => 'my_test_upload_file', # Path to save file on local disk path => '/Upload/my_test_upload_file', # Path to file on Yandex Disk #Download file form Yandex Disk to local disk remote_path => '/Upload', # Folder on Yandex Disk file => 'my_test_upload_file', # Path to file on local disk #Upload file from local disk to Yandex disk My $disk = Yandex::Disk->new( -token => $TOKEN ) Yandex::Disk - a simple API for Yandex Disk VERSION