The util_move_dir function moves a directory, preserving permissions, creation times, and last-access times. If renaming fails, for example, if the source and destination are on two different file systems, the function copies the directory.
#include <libproxy/util.h> int util_move_dir (char *src, char *dst);
0 if the move failed.
nonzero if the move succeeded.
char *src is the fully qualified name of the source directory.
char *dst is the fully qualified name of the destination directory.