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

Method update

recipes/Python/576584_SyncFiles/recipe-576584.py:96–111  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

94 ret.append(open(path+self.TEMP,"wb"))
95 return ret
96 def update(self):
97 os.remove(self.pathcons)
98 open(self.pathcons+self.TEMP,"wb").close()
99 for path in self.paths:
100 try:
101 os.remove(path+self.BACK)
102 except OSError:
103 pass
104 for path in self.paths:
105 try:
106 os.rename(path,path+self.BACK)
107 except OSError:
108 pass
109 os.remove(self.pathcons+self.TEMP)
110 for path in self.paths:
111 os.rename(path+self.TEMP,path)

Callers 9

inputMethod · 0.45
DrawShapeFunction · 0.45
depFunction · 0.45
create_assignFunction · 0.45
remote_debugFunction · 0.45
ElementFunction · 0.45
SubElementFunction · 0.45
mainFunction · 0.45
recipe-576377.pyFile · 0.45

Calls 4

openFunction · 0.50
removeMethod · 0.45
closeMethod · 0.45
renameMethod · 0.45

Tested by

no test coverage detected