How to upload Folder using frappe framwork

I got one solution from the below link. but my requirement is not full fill.