Method

PhodavVirtualDirroot_set_real

since: 2.5

Declaration [src]

void
phodav_virtual_dir_root_set_real (
  PhodavVirtualDir* root,
  const gchar* real_root_path
)

Description [src]

If real_root_path is not NULL, root lists all files added with phodav_virtual_dir_new_dir() and phodav_virtual_dir_attach_real_child() as well as all files under real_root_path as its children.

This enables you to keep the server path to files in real_root_path unchanged while also using the virtual folders. (real_root_path/fileA is still accessible as “/fileA”, if you used phodav_virtual_dir_attach_real_child(), the path would change to “/real_root-basename/fileA”)

This does not check for any conflicts between the virtual directories and the real files - virtual directories take precedence (e.g. in g_file_get_child()).

Available since: 2.5

Parameters

real_root_path

Type: const gchar*

Path to a real directory.

The argument can be NULL.
The data is owned by the caller of the method.
The value is a NUL terminated UTF-8 string.