Skip to content

Commit 8d118ff

Browse files
author
Igor Melnikov
committed
MAGETWO-51684: When you run a command file with timestamp in name being created in var/generation
Delete probe file
1 parent a89acbb commit 8d118ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/internal/Magento/Framework/Console/GenerationDirectoryAccess.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ public function check()
5757
try {
5858
$probeFilePath = $generationDirectoryPath . DIRECTORY_SEPARATOR . time();
5959
$fileWriteFactory->create($probeFilePath, DriverPool::FILE, 'w');
60-
$directoryWrite->delete($probeFilePath);
60+
$driver->deleteFile($probeFilePath);
6161
} catch (\Exception $e) {
6262
return false;
6363
}

0 commit comments

Comments
 (0)