Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
I am trying to get the latest files from an ADLS mount point directory. I am not sure how to extract latest files ,Last modified Date using Pyspark from ADLS Gen2 storage account. Please let me know asap. Thanks!
I wrote a Python code to pick a latest file from mnt location ,
import os
path = "/dbfs/mnt/xxxx"
filelist=[]
for file_item in os.listdir(path):
filelist.append(file_item)
file=len(filelist)
print(filelist[file-1])
Thanks
Connect with Databricks Users in Your Area
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.