This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Todd.Rovito
Recipients David.Benjamin, Todd.Rovito, asvetlov, chris.jerdonek, docs@python
Date 2012-11-07.05:17:25
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1352265446.54.0.22977772835.issue16278@psf.upfronthosting.co.za>
In-reply-to
Content
Chris,
   That is an excellent suggestion.  I modified my OSRenameCombinations.py program and attached.  This program prints a table with the src parameters as columns and the dst as rows.  Hopefully it will show up ok in the bug tracker.


For Unix
                              src_file                       src_directory_empty            src_directory_not_empty        src_file_or_directory_not_exist 
dst_file_exist                 rename overwrite               raises OSError                 raises OSError                 raises OSError                 
dst_not_exist                  rename                         rename                         rename                         raises OSError                 
dst_directory_empty            raises OSError                 rename overwrite               rename overwrite               raises OSError                 
dst_directory_not_empty        raises OSError                 raises OSError                 raises OSError                 raises OSError                 
For Windows
                              src_file                       src_directory_empty            src_directory_not_empty        src_file_or_directory_not_exist 
dst_file_exist                 raises OSError                 raises OSError                 raises OSError                 raises OSError                 
dst_not_exist                  rename                         rename                         rename                         raises OSError                 
dst_directory_empty            raises OSError                 raises FileExistsError         raises FileExistsError         raises OSError                 
dst_directory_not_empty        raises OSError                 raises OSError                 raises OSError                 raises OSError
History
Date User Action Args
2012-11-07 05:17:26Todd.Rovitosetrecipients: + Todd.Rovito, asvetlov, chris.jerdonek, docs@python, David.Benjamin
2012-11-07 05:17:26Todd.Rovitosetmessageid: <1352265446.54.0.22977772835.issue16278@psf.upfronthosting.co.za>
2012-11-07 05:17:26Todd.Rovitolinkissue16278 messages
2012-11-07 05:17:26Todd.Rovitocreate