So I've figured out how to find the latest file using python. Now I'm wondering if I can find the latest file using pyspark. Currently I specify a path but I'd like pyspark to get the latest modified file.
Current code looks like this:
df = sc.read.csv("Path://to/file", header=True, inderSchema=True)
Thanks in advance for your help.