We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 91cf6d1 commit 3fe1012Copy full SHA for 3fe1012
custom.css.plg
@@ -98,10 +98,10 @@ if ($_POST) {
98
$size = trim(shell_exec("du -sh " . escapeshellarg($assets_target) . "assets | cut -f1"));
99
$msg = "Assets synced successfully (Flash drive -> Web), size: $size.";
100
} else {
101
- // Create the assets folder if it doesn't exist
+ // Create the assets folder in both source and target locations
102
mkdir($assets_source, 0755, true);
103
shell_exec("rm -rf " . escapeshellarg($assets_target) . "assets");
104
- shell_exec("cp -r " . escapeshellarg($assets_source) . " " . escapeshellarg($assets_target));
+ mkdir($assets_target . "assets", 0755, true);
105
$msg = "Assets folder not found on Flash drive, created an empty one.";
106
}
107
0 commit comments