Good job with the script!

I think the problem with the "dirs" is because of a small bug.



# Instead of picName=${picURL#*2f}
picName=${picURL##*/}