Skip to content

Commit

Permalink
Merge pull request #159 from Metadrop/feature/get-right-path
Browse files Browse the repository at this point in the history
Remove dirname to get the right path
  • Loading branch information
omarlopesino authored Mar 23, 2023
2 parents d356840 + b66d105 commit 2f7513f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Behat/Context/LogsContext.php
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,12 @@ public static function writeTableLogs(array $grouped_logs) {
*/
public static function writeReport(array $grouped_logs) {
// Add date to report.
$source_dir = dirname(static::$path);
$source_dir = static::$path;
$date = date_create();
$time = date_format($date, "Y-m-d-H-i-s");
$source_file = $source_dir . '/dblog-report-' . $time . '.csv';
if (!file_exists($source_dir)) {
mkdir($source_dir, 0664, TRUE);
mkdir($source_dir, 0777, TRUE);
}
if (is_writable($source_dir)) {
// Open CSV.
Expand Down

0 comments on commit 2f7513f

Please sign in to comment.