[issue45009] Get last modified date of Folders and Files using pathlib module

2021-08-26 Thread Vedran Čačić
Vedran Čačić added the comment: It probably has nothing to do with your bug, but your title is wrong. You are _not_ getting mtime using pathlib (but using os.path instead). That is done like using this approach: https://docs.python.org/3/library/pathlib.html#pathlib.Path.stat Just to elimina

[issue45009] Get last modified date of Folders and Files using pathlib module

2021-08-25 Thread Gopesh Singh
Gopesh Singh added the comment: Adding further details: // from os.path import getmtime from datetime import datetime from pathlib import Path import time // System: Operating System: Ubuntu 18.04.5 LTS Python: 3.8.8 -- ___ Python tracker

[issue45009] Get last modified date of Folders and Files using pathlib module

2021-08-25 Thread Gopesh Singh
New submission from Gopesh Singh : I am trying to get Last modified dates of Folders and Files mounted on Azure Databricks. I am using following Code: ``` root_dir = "/dbfs/mnt/ADLS1/LANDING/parent" def get_directories(root_dir): for child in Path(root_dir).iterdir(): if child.i