We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a87370e commit eef273fCopy full SHA for eef273f
lib/internal/Magento/Framework/File/Name.php
@@ -9,6 +9,7 @@
9
10
use Magento\Framework\App\Filesystem\DirectoryList;
11
use Magento\Framework\App\ObjectManager;
12
+use Magento\Framework\Exception\FileSystemException;
13
use Magento\Framework\Filesystem;
14
use \Magento\Framework\Filesystem\DriverInterface;
15
@@ -62,10 +63,13 @@ public function getNewFileName(string $destinationFile)
62
63
}
64
65
/**
66
+ * Generates new file name until file with provided name doesn't exists
67
+ *
68
* @param DriverInterface $driver
69
* @param string $fileInfo
70
* @param int $index
71
* @return string
72
+ * @throws FileSystemException
73
*/
74
private function generateFileName($driver, $fileInfo, $index = 1)
75
{
0 commit comments