成功运行“Python Core API 入门”后,我现在尝试通过执行以下操作打印文件的共享链接:
def get_file_information(self, file_path):
file_info = client.DropboxClient(self.sess)
print file_info.share(file_path)
我试过通过:
file_path = '/Users/augustoesteves/Dropbox/DSCN7334.mov'
file_path = '/Dropbox/DSCN7334.mov'
file_path = '/DSCN7334.mov'
但我总是得到:
dropbox.rest.ErrorResponse: [404] u"Path '/Users/augustoesteves/Dropbox/DSCN7334.mov' not found"
dropbox.rest.ErrorResponse: [404] u"Path 'Dropbox/DSCN7334.mov' not found"
dropbox.rest.ErrorResponse: [404] u"Path 'DSCN7334.mov' not found"
我一定在做一些令人尴尬的愚蠢的事情,但我想不通。