Cannot os.rename() a directory

but can os.renames().