#import libs
import os
#set path of file or website on which listdir is to be applied
path='/users/desktop/dummy'
#Print all data in path
for file in os.listdir(path):
print(file)
from pathlib import Path
for path in Path('.').iterdir():
info = path.stat()
print(info.st_mtime)
from pathlib import Path
for path in Path('.').iterdir():
info = path.stat()
print(info.st_mtime)
from pathlib import Path
for path in Path('.').iterdir():
info = path.stat()
print(info.st_mtime)
from pathlib import Path
for path in Path('.').iterdir():
info = path.stat()
print(info.st_mtime)
from pathlib import Path
for path in Path('.').iterdir():
info = path.stat()
print(info.st_mtime)