GetFileSize
get_file_size(file_path)
Expand source code
get_file_size(file_path):"""Description-----------Method to check size of the file.Args----file_path: path of the file.Returns-------bytes: size of the file.Usages------file_size = get_file_size(file_path)"""return os.path.getsize(file_path)
Description
Method to check size of the file.
Arguments
file_path: path of the file.
Returns
bytes: size of the file.
Usages
file_size = get_file_size(file_path)