equal
deleted
inserted
replaced
2007 settopic() |
2007 settopic() |
2008 |
2008 |
2009 if hardlink: |
2009 if hardlink: |
2010 try: |
2010 try: |
2011 oslink(src, dst) |
2011 oslink(src, dst) |
2012 except (IOError, OSError): |
2012 except (IOError, OSError) as exc: |
2013 hardlink = False |
2013 if exc.errno != errno.EEXIST: |
|
2014 hardlink = False |
|
2015 # XXX maybe try to relink if the file exist ? |
2014 shutil.copy(src, dst) |
2016 shutil.copy(src, dst) |
2015 else: |
2017 else: |
2016 shutil.copy(src, dst) |
2018 shutil.copy(src, dst) |
2017 num += 1 |
2019 num += 1 |
2018 if progress: |
2020 if progress: |