File tree Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Expand file tree Collapse file tree 3 files changed +29
-0
lines changed Original file line number Diff line number Diff line change
1
+ import os
2
+ import time
3
+ from os import listdir
4
+ from os .path import isfile , join
5
+ print ("ENTER THE PATH TO FOLDER" )
6
+ path = input ()
7
+ files_list = [f for f in listdir (path ) if isfile (join (path , f ))]
8
+ for k in files_list :
9
+ print (k )
10
+ access_time = os .path .getatime (path + "\\ " + k )
11
+ local_time = time .ctime (access_time )
12
+ print ("Last access time(Local time):" , local_time )
Original file line number Diff line number Diff line change
1
+ # Last Access
2
+
3
+ It prints out when was the last the file in folder was accessed.
4
+
5
+ ## Setup instructions
6
+
7
+ Just run the script and Enter the path of folder
8
+ And press Enter
9
+
10
+ ## Output
11
+
12
+ ![ Last Access] ( /Last%20Access/Last%20Access.png )
13
+
14
+ ## Author(s)
15
+
16
+ Vijay Chaurasia
17
+
You can’t perform that action at this time.
0 commit comments