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

Class FileIo

recipes/Python/578907_Python_Awesome_DD/recipe-578907.py:224–234  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

222 return self.target.seek(pos)
223
224class FileIo(Io):
225 def __init__(self, target=None, mode=None):
226 if not self._validateTarget(target):
227 mode = 'w+'
228 self.target = open(target, mode)
229 if self.target.name != '/dev/stdout' and self.target.name != '/dev/stdin':
230 self.size = os.stat(self.target.name).st_size
231 self.pipe = False
232 else:
233 self.size = None
234 self.pipe = True
235
236class FifoIo(FileIo):
237 pass

Callers 1

recipe-578907.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected