MCPcopy Create free account
hub / github.com/aaPanel/BaoTa / FileWrapper

Class FileWrapper

class/btdockerModel/securityModel.py:264–273  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

262 raise Exception("无法读取文件")
263
264 class FileWrapper:
265 def __init__(self, data):
266 self.data = data
267 self.position = 0
268
269 def read(self):
270 return self.data
271
272 def close(self):
273 pass
274
275 return FileWrapper(result.stdout)
276

Callers 1

openMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected