updf_genΒΆ
updf_gen copies the all files of directory an its subdirectories into an updf file.
- bool = updf_gen(stg, ssDir)
Return Value
bool.
Parameters
- stg
stg is a storage object (see updf_create_file, updf_open_file, updf_create_storage).
- ssDir
ssDir is the directory name.
Comment
All files will be copied into storage and streams recursively.
Example
def test_updf_gen()
{
ssRoot = GetRootDirectory() + "samples";
ssFile = GetTempPath() + "test-gen.updf";
cmode = UPDF_ZLIB_COMPRESSION;
// cmode = 0;
stg = updf_create_file(ssFile, cmode);
if (type(stg) == "error") {
error(stg.message);
}
stg1 = updf_create_storage(stg, "samples");
rc = updf_gen(stg1, ssRoot);
if (type(stg) == "error") {
error(stg.message);
}
updf_close_storage(stg1);
updf_close_storage(stg);
}
test_updf_gen();
History
Version |
Description |
---|---|
5.6.0 |
New |
See also
id-1579932