Check the File Size
In this example, you will learn to check the file size.
To understand this example, you should have the knowledge of the following Python programming topics:
Example 1: Using os module
Output
The unit of the file size is byte
.
Example 2: Using pathlib module
Output
The unit of the file size is byte
.
Last updated