Skip to content

Commit

Permalink
Fix creation of chunk folder if needed.
Browse files Browse the repository at this point in the history
Use getChunkDirectory instead of getChunksPath to get the path for the
chunks directory.
  • Loading branch information
buschmann23 committed Jul 5, 2016
1 parent 8e471a5 commit e9ae7f9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Save/ChunkSave.php
Original file line number Diff line number Diff line change
Expand Up @@ -215,11 +215,11 @@ public function chunkDisk()
*/
protected function createChunksFolderIfNeeded()
{
$path = $this->getChunksPath();
$path = $this->getChunkDirectory();

// creates the chunks dir
if (!file_exists($path)) {
mkdir($path, 0777, true);
}
}
}
}

0 comments on commit e9ae7f9

Please sign in to comment.