You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is the streaming version of the problem. We will use a heap to find the 10 largest files.
We do have to helper API to help us to get the size of the file and its subdirectories. We will use the os.path.getsize() function to get the size of the file. And os.path.join() function to get the path of the file.
These are gonna be URIs.
These are gonna be going to be the children of the current directory.
Given a directory path, find the 10 largest files in the directory and its subdirectories.