This commit is contained in:
Your Name 2023-10-17 16:01:51 +03:00
parent 6ec5c94969
commit 4876e55da1

View File

@ -64,7 +64,6 @@ int cptree(const char *src, const char *dst) {
struct stat stat_path;
get_stat(src, &stat_path);
printf("%s %s\n", src, dst);
if (S_ISDIR(stat_path.st_mode) == 0) {
if (copy(src, dst)) {
fprintf(stderr, "cp: %s: copy() failed (%s)\n", src, strerror(errno));