Subject: | recursive get issue |
Using HTTP::DAV in a perl script on Ubuntu 11.04
The recursive get of a folder with all subfolders and files is not fully working if the callback is not set and
used as option for get.
The problem only comes from the get command:
for a get call without callback, only the folders and subfolders are copied recursively (no file is copied
locally)
$d->get(-url => $url,
-to => $checkoutpath);
There is no warning message or error given.
----------------------
in order to have everything copied recursively(folders and files) with success, the callback is needed (even if
with an empty callback function):
sub cb {
}
$d->get(-url => $url,
-to => $checkoutpath,
-callback=>\&cb);
-----------------------
Arnaud Tiret