Bug #48652

Copying configuration fails for files in subdirectories

Added by Andreas Wolf over 8 years ago. Updated almost 7 years ago.

Status:
Resolved
Priority:
Should have
Assignee:
-
Target version:
-
Start date:
2013-05-29
Due date:
% Done:

100%

Estimated time:

Description

When a file should be copied to a subdirectory of Configuration/*/, e.g. for a subcontext, the scp operation fails.

The (misleading) error message is scp: /var/www/.../Configuration/Production/Subcontext/: Is a directory – the real cause is that the directory does not exist and thus scp would rather copy the file to the folder path, which is pointless as the path points to a directory.

Solution would be to execute a mkdir -p ...$configurationPath before copying the file.

Also available in: Atom PDF