Exemplo n.º 1
0
def directWriteLines(path, lines):
    with fileUtils.open_ex(path, "dw") as f:
        return f.writelines(lines)
Exemplo n.º 2
0
 def getReadDelay(self):
     with fileUtils.open_ex(lvm.lvPath(self.sdUUID, sd.METADATA), "dr") as f:
         t = time.time()
         f.read(4096)
         return time.time() - t
Exemplo n.º 3
0
def directReadLines(path):
    with fileUtils.open_ex(path, "dr") as f:
        return f.readlines()
Exemplo n.º 4
0
def directWriteLines(path, lines):
    with fileUtils.open_ex(path, "dw") as f:
        return f.writelines(lines)
Exemplo n.º 5
0
def directReadLines(path):
    with fileUtils.open_ex(path, "dr") as f:
        return f.readlines()
Exemplo n.º 6
0
def _directWriteLines(path, lines):
    with open_ex(path, "dw") as f:
        return f.writelines(lines)
Exemplo n.º 7
0
def _directReadLines(path):
    with open_ex(path, "dr") as f:
        return f.readlines()
Exemplo n.º 8
0
def _directWriteLines(path, lines):
    with open_ex(path, "dw") as f:
        return f.writelines(lines)
Exemplo n.º 9
0
def _directReadLines(path):
    with open_ex(path, "dr") as f:
        return f.readlines()
Exemplo n.º 10
0
 def getReadDelay(self):
     with fileUtils.open_ex(lvm.lvPath(self.sdUUID, sd.METADATA),
                            "dr") as f:
         t = time.time()
         f.read(4096)
         return time.time() - t