I have a folder with a bunch of files. Is there any way to select the latest updated file?
For instance:
FTP_FOLDER = os.path.join(os.getcwd(), 'ftp_folder') xml_files = [file for file in glob.glob(os.path.join(FTP_FOLDER, '*.xml'))]
Now how to get the latest xml_file?
source share