Rename the file or directory src to dst. If dst is a directory, OSError will be raised.
However, i am easily able to rename a folder named Cool to Fool using the following command:
import os
os.rename("C:/Cool", "C:/Fool")
and no OSError is being raised. Can someone explain this?

New Topic/Question
Reply




MultiQuote




|