Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Returns the estimated amount of space that would be taken up by the specified sync spec.

Realize(spec As roSyncSpec/roAssetCollection) As

...

roAssetRealizerEvent

Places the files into the destination directory specified in the passed roSyncSpec or roAssetCollection. If the pool does not contain the full set of required files, then this method will immediately fail before any files are changed (this method will always attempt to do as much work as possible before destructively modifying the file system). This method automatically checks the length of the file and any hashes that match the specification. If there is a mistmatch, then the affected file is deleted and realization fails. This method indicates success or failure by returning an roAssetRealizerEvent object.

Note
titleNote

The pool and the destination must be in the same file system.

ValidateFiles(spec As Object, options As Object) As

...

roAssociativeArray

Checks the hash of every file in the spec against the corresponding file in the destination path and returns an associative array containing each mismatched fle name mapped to the reason. The options parameter is an roAssociativeArray, which can currently support a single option:

  • "DeleteCorrupt": Automatically deletes any files that do not match the expected hash. By default, these hashes are not deleted.