Hi I am using webhook and then calling list_folder_continue
to get modified data. However path_display is different for Foldermetadata and FileMetada for each entry.
dbx = dropbox.Dropbox(token)
result = dbx.files_list_folder_continue(cursor)
for entry in result.entries:
print (entry)
if (isinstance(entry, FolderMetadata)):
print (entry.path_display)
if (isinstance(entry, FileMetadata)):
print (entry.path_display)
Lets say I uploaded a folder to Documents/Test/ which contains a test.txt file
The output of above is:
FolderMetadata(name='Test', id='id:7KpyMyVCGTAAAAAAAAAAGg', path_lower='/documents/test', path_display='/Documents/Test', parent_shared_folder_id='1189873249')
FileMetadata(name='test.txt', id='id:7KpyMyVCGTAAAAAAAAAAGg', path_lower='/documents/test/test.txt', path_display='/Documents/test/test.txt')
Notice how path_display
is returning folder test
and not Test
for FileMetadata. According to v2 api path_display
should respect capital letter in folder name.