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

Function cp

python/IECore/FileSequenceFunctions.py:69–75  ·  view source on GitHub ↗
( sequence1, sequence2 )

Source from the content-addressed store, hash-verified

67# files specified by each sequence overlap.
68## \ingroup python
69def cp( sequence1, sequence2 ) :
70
71 if __sequencesClash( sequence1, sequence2 ) :
72 raise RuntimeError( "Attempt to copy sequences with common filenames." )
73
74 for src, dst in sequence1.mapTo( sequence2, True ) :
75 shutil.copy( src, dst )
76
77## Removes all the files specified by the sequence.
78## \ingroup python

Callers

nothing calls this directly

Calls 3

__sequencesClashFunction · 0.85
mapToMethod · 0.45
copyMethod · 0.45

Tested by

no test coverage detected