Adding function for uploading directory recursively.