[PATCH] cp: Add --keep-directory-symlink option

2024-01-24 Thread Daan De Meyer
When recursively copying files into OS trees, it often happens that some subdirectory of the source directory is a symlink in the target directory. Currently, cp will fail in that scenario with the error: "cannot overwrite non-directory %s with directory %s" However, we'd like cp in this scenario

[PATCH v2] cp: Add --keep-directory-symlink option

2024-01-25 Thread Daan De Meyer
When recursively copying files into OS trees, it often happens that some subdirectory of the source directory is a symlink in the target directory. Currently, cp will fail in that scenario with the error: "cannot overwrite non-directory %s with directory %s" However, we'd like cp in this scenario

[PATCH v2] cp: Add --keep-directory-symlink option

2024-02-21 Thread Daan De Meyer
When recursively copying files into OS trees, it often happens that some subdirectory of the source directory is a symlink in the target directory. Currently, cp will fail in that scenario with the error: "cannot overwrite non-directory %s with directory %s" However, we'd like cp in this scenario

Re: [PATCH v2] cp: Add --keep-directory-symlink option

2024-02-21 Thread Daan De Meyer
to have been forgotten so I'm resending it. Cheers, Daan On Wed, 21 Feb 2024 at 16:47, Dragan Simic wrote: > Hello Daan, > > On 2024-02-21 13:37, Daan De Meyer wrote: > > When recursively copying files into OS trees, it often happens that > > some subdirectory of