aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-08-13 17:41:32 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-08-13 17:42:53 -0400
commit663a75eea92dceacf82635516e64d8ad341761cb (patch)
tree448cd01d092db0d3c8ecbc59729e7d76cbf06b04 /include
parentd943633d4d925d7340708371be8abb09adf579fe (diff)
downloadstasis-remove-copytree.tar.gz
Remove unused copytree() functionremove-copytree
* Functionality was replaced by rsync long ago
Diffstat (limited to 'include')
-rw-r--r--include/copy.h18
1 files changed, 0 insertions, 18 deletions
diff --git a/include/copy.h b/include/copy.h
index a26ac30..0f92ddd 100644
--- a/include/copy.h
+++ b/include/copy.h
@@ -14,24 +14,6 @@
#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
*
* ```c