Skip to content

Commit ddf4169

Browse files
authored
Merge pull request #73 from magento-commerce/MCLOUD-10279
MCLOUD-10279: Added ACSD-50165 patch
2 parents e2422ce + 17be5c7 commit ddf4169

3 files changed

+56
-0
lines changed

patches.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,10 @@
267267
},
268268
"Auto increment number jumping up for catalog_product_entity_* tables": {
269269
">=2.3.7 <2.4.7": "MCLOUD-10032__Increment_number_for_catalog_product_entity_tables__2.4.3-p1.patch"
270+
},
271+
"Fixes the error 'The file can't be deleted. Warning!unlink: No such file or directory' when flushing JS/CSS cache from the Admin": {
272+
">=2.4.0 <2.4.1-p1": "MCLOUD-10279__errors_when_flushing_js_css_cache_from_admin__2.4.0.patch",
273+
">=2.4.1-p1 <2.4.7": "MCLOUD-10279__errors_when_flushing_js_css_cache_from_admin__2.4.4.patch"
270274
}
271275
},
272276
"magento/module-paypal": {
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
diff -Nuar a/vendor/magento/framework/Filesystem/Driver/File.php b/vendor/magento/framework/Filesystem/Driver/File.php
2+
index 1affad552137..4edb095f6c48 100644
3+
--- a/vendor/magento/framework/Filesystem/Driver/File.php
4+
+++ b/vendor/magento/framework/Filesystem/Driver/File.php
5+
@@ -391,8 +391,8 @@ public function symlink($source, $destination, DriverInterface $targetDriver = n
6+
*/
7+
public function deleteFile($path)
8+
{
9+
- $result = @unlink($this->getScheme() . $path);
10+
- if (!$result) {
11+
+ @unlink($this->getScheme() . $path);
12+
+ if ($this->isFile($path)) {
13+
throw new FileSystemException(
14+
new Phrase(
15+
'The "%1" file can\'t be deleted. %2',
16+
@@ -400,7 +400,7 @@ public function deleteFile($path)
17+
)
18+
);
19+
}
20+
- return $result;
21+
+ return true;
22+
}
23+
24+
/**
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
diff -Nuar a/vendor/magento/framework/Filesystem/Driver/File.php b/vendor/magento/framework/Filesystem/Driver/File.php
2+
index 5dcfeeef23ab..e26acb5a9369 100644
3+
--- a/vendor/magento/framework/Filesystem/Driver/File.php
4+
+++ b/vendor/magento/framework/Filesystem/Driver/File.php
5+
@@ -440,11 +440,12 @@ public function symlink($source, $destination, DriverInterface $targetDriver = n
6+
*/
7+
public function deleteFile($path)
8+
{
9+
- $result = @unlink($this->getScheme() . $path);
10+
+ @unlink($this->getScheme() . $path);
11+
if ($this->stateful) {
12+
clearstatcache(true, $this->getScheme() . $path);
13+
}
14+
- if (!$result) {
15+
+
16+
+ if ($this->isFile($path)) {
17+
throw new FileSystemException(
18+
new Phrase(
19+
'The "%1" file can\'t be deleted. %2',
20+
@@ -452,7 +453,7 @@ public function deleteFile($path)
21+
)
22+
);
23+
}
24+
- return $result;
25+
+ return true;
26+
}
27+
28+
/**

0 commit comments

Comments
 (0)