I am not able to print the names of the folder names inside

p=Path("…//…//Datasets//Images")

dirs= p.glob("*")

for folder_name in dirs:

print(folder_name)

what is wrong with this code and i am not able to get the names of the folder .