Skip to content

Commit 854a060

Browse files
committed
MCLOUD-10279: Added ACSD-50165 patch
1 parent 31fb0ae commit 854a060

File tree

2 files changed

+31
-0
lines changed

2 files changed

+31
-0
lines changed

patches.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -264,6 +264,9 @@
264264
},
265265
"Fixed currency displaying on product page": {
266266
">=2.4.3 <2.4.4": "MCLOUD-8279__Fixed_currency_displaying_on_product_page__2.4.3.patch"
267+
},
268+
"Fixes the error 'The file can't be deleted. Warning!unlink: No such file or directory' when flushing JS/CSS cache from the Admin": {
269+
">=2.4.1-p1 <2.4.7": "MCLOUD-10279__errors_when_flushing_js_css_cache_from_admin__2.4.4.patch"
267270
}
268271
},
269272
"magento/module-paypal": {
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
diff --git 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)