Question: I have a folder called (D:DataLog). This folder has 4 subfolders A, B, C, D. Under each folder, there are multiple files. I want a
I have a folder called (D:\DataLog). This folder has 4 subfolders A, B, C, D. Under each folder, there are multiple files. I want a program that sorts files based on creation time in each subfolder and has to give me a list of files except for the last file(newly created file) in each subfolder. Let's suppose A has 4 files that are created at 1:00 pm, 2:00 pm, 3:15 pm,4:30 pm, and B has files that are created at 12:00 pm, 2:30 pm. The program has to give only files 1:00 pm, 2:00 pm, 3:15 pm from A, and 12:00 pm file from B. Can anyone help me? Need Python program for the below scenario
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
