.. highlightlang:: us
.. index:: updf_dump
.. _updf_dump:
updf_dump
=========
.. us.tag updf_dump NOTREADYENGLISH updf updf-misc New560 Changed5401
:ref:`updf_dump` saves a complete updf file in a directory. For storages a new
subdirectory will be created. Properties will be saved in xml files. Streams will
be saved in binary files.
.. function:: bool = updf_dump(stg, ssDir)
bool = updf_dump(stg, ssDir, mode)
.. us.return
**Return Value**
*bool* is TRUE (1), if the function was successful and otherwise FALSE (0).
.. us.params
**Parameters**
.. uparam:: stg
*stg* is a storage object (see :ref:`updf_create_file`, :ref:`updf_open_file`,
:ref:`updf_create_storage`).
.. uparam:: ssDir
*ssDir* is the name of a directory.
.. uparam:: mode
Is one of the following values:
.. list-table::
:header-rows: 1
* - Value
- Description
* - 0 or UPDF_FAIL_IF_EXIST
- This is the default value, if *mode* is not specified. If a file or a directory with the name *ssDir* already exists, the function will fail.
* - UPDF_REMOVE_DIRECTORY
- The directory or file will be deleted.
* - UPDF_OVERWRITE
- Directory or file will be overwritten.
* - UPDF_PROPSONLY
- Saves only the properties of the storage *stg*.
.. us.comment
**Comment**
The output of the properties are xml files with the extension :file:`._props_`.
Example: If a stream "Test Stream" exists the file name would be
"Test Stream._props_".
.. code-block:: xml