MCPcopy Create free account
hub / github.com/apache/cloudstack / get_mtime

Method get_mtime

scripts/vm/hypervisor/xenserver/xcposs/NFSSR.py:244–246  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

242 return super(NFSFileVDI, self).attach(sr_uuid, vdi_uuid)
243
244 def get_mtime(self, path):
245 st = util.ioretry_stat(lambda: os.stat(path))
246 return st[stat.ST_MTIME]
247
248 def clone(self, sr_uuid, vdi_uuid):
249 timestamp_before = int(self.get_mtime(self.sr.path))

Callers 3

cloneMethod · 0.95
cloneMethod · 0.45
cloneMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected