cp_r


Description:

[ Version ( since = "1.21.38" ) ]
public bool cp_r (string src, string dest) throws Error

copy a file or directory recursively

This copies a file or directory from src to dest recursively using the "cp -rP" command.

Most users should use cp_a instead. This command is useful when you don't want to preserve permissions, because the target filesystem does not support it (primarily when writing to DOS FAT filesystems).

Parameters:

this

A GuestfsSession object

Returns:

true on success, false on error