(cd_path)
| 85 | return volume, free |
| 86 | |
| 87 | def copy_cd(cd_path): |
| 88 | try: |
| 89 | dest_vol, free_space = get_volume_with_most_space() |
| 90 | cd_name = get_volume_name(cd_path) |
| 91 | dest_dir = os.path.join(dest_vol, cd_name) |
| 92 | mkdir_path(dest_dir) |
| 93 | command = "XCOPY %s* \"%s\" /s /i" % (cd_path, dest_dir) |
| 94 | print command |
| 95 | os.system(command) |
| 96 | except Exception, e: |
| 97 | print "copy_cd failed: %s\n" % e |
| 98 | |
| 99 | if __name__ == '__main__': |
| 100 | print "CdCopy start..." |
no test coverage detected