I need to create a data frame out of attributes and share URL of all the files in a directory and its sub-directories
the code am using is
for entry in dbx.files_list_folder('/2.info_copy',recursive=True).entries:
if(str(type(dbx.files_get_metadata(entry.path_lower))) == "<class 'dropbox.files.FileMetadata'>"😞
shared_link_metadata = dbx.sharing_create_shared_link(entry.path_lower)
d.append(
{
'Name': entry.name,
'Folder Path': entry.path_lower,
'Link': shared_link_metadata.url,
'client_modified' : str(entry.client_modified),
'server_modified' : str(entry.server_modified),
'size' : entry.size,
'content_hash' : entry.content_hash
})
df = pd.DataFrame(d)
I am new to the dropbox API and not sure if can get the list of files from the shared folder.