BrightSign Pool demystified
The pool directory found on the BrightSign microSD card is just a directory with a bunch of subdirectories and files with cryptic names, but there is a method to the madness... In the sample code below, we'll show how to use a file's original name, to find its path in the pool. Given that files in the pool have different names from their original name, we need a "map" to associates a file's name to its path, in the form of a roAssetPoolFiles object.
sync = CreateObject("roSyncSpec")
sync.readFromFile("current-sync.json")
assets = sync.GetAssets("")
pool = CreateObject("roAssetPool", "sd:/pool")
poolFiles = CreateObject("roAssetPoolFiles", pool, assets)
for each asset in assets.GetAssetList()
print asset.name
print poolFiles.GetPoolFilePath( asset.name )
end for