Jumlah file Python

import os
directory_path = '/home/xyz/'
No_of_files = len(os.listdir(directory_path))
Magnificent Millipede