separating out code that turns gdrive file object into array so it can be called as a stand-alone