creating nested directories in put operation