MCPcopy Create free account
hub / github.com/ImageEngine/cortex / __tmpPrefix

Function __tmpPrefix

python/IECore/FileSequenceFunctions.py:108–121  ·  view source on GitHub ↗

Returns a hopefully unique string suitable for use as the temporary sequence prefix when moving a sequence.

()

Source from the content-addressed store, hash-verified

106 return False
107
108def __tmpPrefix() :
109
110 """Returns a hopefully unique string suitable for use as the temporary
111 sequence prefix when moving a sequence."""
112
113 import hashlib
114 import platform
115 import time
116
117 h = hashlib.md5()
118 h.update( platform.node().encode() ) # computer name
119 h.update( str( os.getpid() ).encode() )
120 h.update( str( time.time() ).encode() )
121 return "ieSequenceTmp" + h.hexdigest() + "."
122
123__all__ = [ "mv", "cp", "rm", "cat" ]

Callers 1

mvFunction · 0.85

Calls 2

strFunction · 0.50
updateMethod · 0.45

Tested by

no test coverage detected