[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Directory overwriting

When I copy a file into the present directory, with:

 $ cp /path/to/file .

, if the file already exists it is overwritten, i.e. the `old one'
is removed and the `new one' takes its place.
Instead, with directories it is not the same:
when I do:

 $ cp -vr /path/to/dir .

, if the directory already exists it is not removed, but the new one
just adds files to the old one.

Would it be possible, and how?, to have with directory overwriting
the same behaviour we have with file overwriting?


Reply to: