MCPcopy Create free account
hub / github.com/ActiveState/code / copy_cd

Function copy_cd

recipes/Python/577118_Oneclick_Copy_CDDVD/recipe-577118.py:87–97  ·  view source on GitHub ↗
(cd_path)

Source from the content-addressed store, hash-verified

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..."

Callers 1

recipe-577118.pyFile · 0.85

Calls 4

get_volume_nameFunction · 0.85
mkdir_pathFunction · 0.85
joinMethod · 0.45

Tested by

no test coverage detected