问题描述
我正在为Python 3.8使用azure-storage-file-datalake插件。此处对SDK进行了深入的介绍- https://docs.microsoft.com/en-us/python/api/azure-storage-file-datalake/azure.storage.filedatalake.datalakedirectoryclient?view=azure-python,但没有关于是否可以从数据湖中删除文件的描述,SDK仅描述了删除目录。可以删除文件吗?
编辑:针对给出的答案,我尝试了此方法...
file = DataLakeFileClient.from_connection_string(
my_connection_string,
file_system_name=filesystem,
file_path=path
)
file.delete_file()
但最后一行导致此错误
TypeError('element indices must be integers')
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)