MCPcopy Create free account
hub / github.com/CSAILVision/gandissect / MakeSyminkWorker

Class MakeSyminkWorker

netdissect/tool/allunitsample.py:185–196  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

183 raise
184
185class MakeSyminkWorker(WorkerBase):
186 # Creating symbolic links is a bit slow and can be done faster
187 # in parallel rather than waiting for each to be created.
188 def work(self, sourcename, targname):
189 try:
190 os.symlink(sourcename, targname)
191 except OSError as e:
192 if e.errno == errno.EEXIST:
193 os.remove(targname)
194 os.symlink(sourcename, targname)
195 else:
196 raise
197
198if __name__ == '__main__':
199 main()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected