Skip to content

Commit 1e1eff2

Browse files
committed
feat: display a full path
1 parent 7d47478 commit 1e1eff2

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/DumbDbCommand.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,8 +249,9 @@ protected function fire(): int
249249

250250
try {
251251
$dumper->dumpToFile($path);
252-
$filesize = Format::humanReadableSize(filesize($path));
253-
$this->info("Database dumped successfully to: $path ($filesize)");
252+
$fullPath = realpath($path);
253+
$filesize = Format::humanReadableSize(filesize($fullPath));
254+
$this->info("Database dumped successfully to: $fullPath ($filesize)");
254255
} catch (Exception $e) {
255256
$this->error('Failed to dump database: '.$e->getMessage());
256257

0 commit comments

Comments
 (0)