import collections

import collections
import os
def main():
    file_info = collections.namedtuple('FileInfo', 'filename size date')
    root_dir = r'c:\testing'
    for _, _, file_list in os.walk(root_dir):
        for fname in file_list:
            files = [file_info(fname,
                               os.path.getsize(root_dir+"\\"+fname),
                               os.path.getctime(root_dir+"\\"+fname))
                     for fname in file_list]
    print(files[-1].filename, files[-1].size)

if __name__ == '__main__':
    main()
e97e710c393528e27a12f4e1c212d7272d7a826d
<mask token>

<mask token>


def main():
    file_info = collections.namedtuple('FileInfo', 'filename size date')
    root_dir = 'c:\\testing'
    for _, _, file_list in os.walk(root_dir):
        for fname in file_list:
            files = [file_info(fname, os.path.getsize(root_dir + '\\' +
                fname), os.path.getctime(root_dir + '\\' + fname)) for
                fname in file_list]
    print(files[-1].filename, files[-1].size)


<mask token>

<mask token>


def main():
    file_info = collections.namedtuple('FileInfo', 'filename size date')
    root_dir = 'c:\\testing'
    for _, _, file_list in os.walk(root_dir):
        for fname in file_list:
            files = [file_info(fname, os.path.getsize(root_dir + '\\' +
                fname), os.path.getctime(root_dir + '\\' + fname)) for
                fname in file_list]
    print(files[-1].filename, files[-1].size)


if __name__ == '__main__':
    main()

import collections
import collections
import os


def main():
    file_info = collections.namedtuple('FileInfo', 'filename size date')
    root_dir = 'c:\\testing'
    for _, _, file_list in os.walk(root_dir):
        for fname in file_list:
            files = [file_info(fname, os.path.getsize(root_dir + '\\' +
                fname), os.path.getctime(root_dir + '\\' + fname)) for
                fname in file_list]
    print(files[-1].filename, files[-1].size)


if __name__ == '__main__':
    main()

import collections

import collections
import os
def main():
    file_info = collections.namedtuple('FileInfo', 'filename size date')
    root_dir = r'c:\testing'
    for _, _, file_list in os.walk(root_dir):
        for fname in file_list:
            files = [file_info(fname,
                               os.path.getsize(root_dir+"\\"+fname),
                               os.path.getctime(root_dir+"\\"+fname))
                     for fname in file_list]
    print(files[-1].filename, files[-1].size)

if __name__ == '__main__':
    main()