I have gone through following scenarios
- which we can list files in a directory
- Which we can list files with their file sizes
But now I need to list only the files just they are greater than some X KB with the input given by the user.
Please help with some suitable examples
Here is my code
import os
for path, dirs, files in os.walk("PathToDir" ):
for f in files:
size=os.path.getsize( os.path.join( path, f )
print path, f, size