Note: The directory itself is not copied, just its contents.
If <src> is a local tar archive in a recognized compression format (identity, gzip, bzip2 or xz) then it is unpacked as a directory.
Ресурсы с удаленных URL не распакованы. Когда каталог копируется или распаковывается, он ведет себя так же, как и tar -x, в результате получается объединение: того, что существовало в пути назначения, и содержимого дерева исходных текстов, с конфликтами, разрешенными в пользу «2.» наот файла к файлу.
Note: Whether a file is identified as a recognized compression format or not is done solely based on the contents of the file, not
имя файла. Например, если пустой файл заканчивается на .tar.gz, он не будет распознан как сжатый файл и не сгенерирует сообщение об ошибке распаковки любого типа, скорее файл будет просто скопирован в место назначения.
If <src> is any other kind of file, it is copied individually along with its metadata. In this case, if <dest> ends with a trailing
косая черта /, она будет считаться каталогом, а содержимое будет записано в /base().
If multiple <src> resources are specified, either directly or due to the use of a wildcard, then <dest> must be a directory, and it must
и заканчивается косой чертой /.
If <dest> does not end with a trailing slash, it will be considered a regular file and the contents of <src> will be written at
.
If <dest> doesn’t exist, it is created along with all missing directories in its path.