from pathlib import Path
from datetime import datetime
dic = {
datetime.fromtimestamp(path.stat().st_ctime).strftime('%Y-%m-%d %H:%M:%S'): path.name
for path in Path().glob('*.*')
}
path = min(Path().glob('*.rar'), key=lambda path: path.stat().st_ctime)
print(path.name)