scripts/step2.py
def load_files():
    """Reads the log file and extracts all files paths."""

    with open("log.txt", "r", encoding="utf-8") as temp_file:

        files_list = list()

        for item in temp_file.read().splitlines():
            file_name, file_date = item.split(",")
            files_list.append(("./states/" + file_name, file_date))

        return files_list
Reads the log file and extracts all files paths.
Reads the log file and extracts all files paths.
Reads the log file and extracts all files paths .
def load_files():
    with open("log.txt", "r", encoding="utf-8") as temp_file:
        files_list = list()
        for item in temp_file.read().splitlines():
            file_name, file_date = item.split(",")
            files_list.append(("./states/" + file_name, file_date))
        return files_list
def load_files ( ) : with open ( "log.txt" , "r" , encoding = "utf-8" ) as temp_file : files_list = list ( ) for item in temp_file . read ( ) . splitlines ( ) : file_name , file_date = item . split ( "," ) files_list . append ( ( "./states/" + file_name , file_date ) ) return files_list
Reads the log file and extracts all files paths.
Reads the log file and extracts all files paths .
"""Reads the log file and extracts all files paths."""