Skip to content

Commit 5d491c0

Browse files
committed
Fix path generation for file saving
1 parent 499be7a commit 5d491c0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/CLI/DownloadCommand.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,8 @@ public function downloadTrack(OutputInterface $output, Client $client, Release $
8686
$progress->display();
8787

8888
// Create the directory if it doesn't exist
89-
$directory = 'Monstercat' . DIRECTORY_SEPARATOR . $release->getArtistsTitle();
89+
$directory = getcwd() . DIRECTORY_SEPARATOR . 'Monstercat';
90+
$directory .= DIRECTORY_SEPARATOR . $release->getArtistsTitle();
9091
$directory .= DIRECTORY_SEPARATOR . $release->getTitle();
9192

9293
if (!is_dir($directory)) {

0 commit comments

Comments
 (0)