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

Method status

recipes/Python/492212_dal4py/recipe-492212.py:259–269  ·  view source on GitHub ↗
(self, block)

Source from the content-addressed store, hash-verified

257
258 # Read Block Status
259 def status(self, block):
260 assert type(block) is int and 1 <= block <= self.__blocks
261 status = self.__disk.status(block)
262 if status == self.__disk.STATUS.closed:
263 return self.STATUS.closed
264 elif self.__disk.STATUS.d1 <= status <= self.__disk.STATUS.dZ:
265 return self.STATUS.directory
266 elif self.__disk.STATUS.f1 <= status <= self.__disk.STATUS.fZ:
267 return self.STATUS.file
268 else:
269 return self.STATUS.block
270
271 # Seed Control Interface
272 def seed(self, data=None):

Callers 9

make_directoryMethod · 0.95
remove_directoryMethod · 0.95
list_directoryMethod · 0.95
emptyMethod · 0.95
nameMethod · 0.95
renameMethod · 0.95
is_fileMethod · 0.95
is_directoryMethod · 0.95
recipe-224043.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected