Uploading getFolderStructure function