I want to write kind of a log file back to azure adls gen1 I can write (not append) using
dbutils.fs.put(filename,"random text")
but i cant append it using
with open("/dbfs/mnt/filename.txt","a"):
f.write("random text")
it give me error
1 with open("/dbfs/mnt/filename.txt", "a") as f:
----> 2 f.write("append values")
OSError: [Errno 95] Operation not supported
alternatively, i tried using logger.basicconfig(logging.basicConfig(filename='dbfs:/mnt/filename.txt', filemode='w')
but looks like its not writing into the path. can anyone help please