From 683b3f78663efcff7a406d8287b78d73f18cc1f1 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 13 Aug 2024 17:57:24 -0400 Subject: Remove unused copytree() function (#27) * Functionality was replaced by rsync long ago --- include/copy.h | 18 ------------------ 1 file changed, 18 deletions(-) (limited to 'include/copy.h') diff --git a/include/copy.h b/include/copy.h index a26ac30..0f92ddd 100644 --- a/include/copy.h +++ b/include/copy.h @@ -13,24 +13,6 @@ #define CT_OWNER 1 << 1 #define CT_PERM 1 << 2 -/** - * Recursively copy a directory, or a single file - * - * ```c - * if (copytree("/source/path", "/destination/path", CT_PERM | CT_OWNER)) { - * fprintf(stderr, "Unable to copy files\n"); - * exit(1); - * } - * ``` - * - * @param srcdir source file or directory path - * @param destdir destination directory - * @param op CT_OWNER (preserve ownership) - * @param op CT_PERM (preserve permission bits) - * @return 0 on success, -1 on error - */ -int copytree(const char *srcdir, const char *destdir, unsigned op); - /** * Copy a single file * -- cgit