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
}
Written by Marcin Wosinek
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#