In general, os.rename requires two inputs, the 'original' and the 'new' filename.
Parameters: source: A path-like object representing the file system path. This is the source file path which is to renamed. destination: A path-like object representing the file system path. src_dir_fd (optional): A file descriptor referring to a directory. dst_dir_fd (optional): A file descriptor referring to a directory.
Return Type: This method does not return any value.
So, what happens in the following scenario?
os.rename(original, original)
And, is there any harm if this were to operate over a large number of files?