Last Updated: February 25, 2016
·
196
· marcin-wosinek

Upload all dirs and files on webdav

find * -type d | {
    while read dir;
    do curl -X MKCOL http://$USER:$PASSWORD@$LOCATION/$dir;
  done
}

find * -type f | {
  while read file;
    dir=`dirname $file`
    do curl -T $file http://$USER:$PASSWORD@$LOCATION/$dir/;
  done
}