User Tools

Site Tools


odtools:od_restorefilefromobject

This is an old revision of the document!


OD Restore File From Object is a command sequence plugin that lets you restore a file from an object that has been saved with OD Store file With Object. It takes a filename and chunk ID as parameters. It is not to be used a standalone tool, but can be used within other scripts or just be called with arguments.

In python, invoking the command is at follows:

lwsdk.command('cmdseq “OD_RestoreFileFromObject” \“'+ <file on disk> + ', ” + ID + “\”')

this example, will restore a file as c:\test.txt from chunk id ^:

  1. filename = r“c:\test.txt”
  2. ID = “^”
  3. lwsdk.command('cmdseq “OD_RestoreFileFromObject” \“'+ filename + ', ” + ID + “\”')

The file can at any point in time be restored via OD_StoreFileWithObject. One use for the mechanism, is to store copyright trackers (like your name, date, etc) in your object.

The File currently has a size limit of 1 MB.

odtools/od_restorefilefromobject.1548131990.txt.gz · Last modified: 2019/01/21 21:39 by oliver