MCPcopy Index your code
hub / github.com/geekcomputers/Python / Organize

Function Organize

Organise.py:64–78  ·  view source on GitHub ↗
(dirs, name)

Source from the content-addressed store, hash-verified

62
63
64def Organize(dirs, name):
65 try:
66 os.mkdir(name)
67 print("{} Folder Created".format(name))
68 except WindowsError:
69 print("{} Folder Exist".format(name))
70
71 src = "{}\\{}".format(destLocation, dirs)
72 dest = "{}\\{}".format(destLocation, name)
73
74 os.chdir(dest)
75 shutil.move(src, "{}\\{}".format(dest, dirs))
76
77 print(os.getcwd())
78 os.chdir(destLocation)
79
80
81TYPES_LIST = [

Callers 1

Organise.pyFile · 0.85

Calls 1

moveMethod · 0.45

Tested by

no test coverage detected