We make sure that the destination folder has a trailing slash

This commit is contained in:
Romain Biard 2017-01-11 10:21:14 -03:00
commit 6aeec7d337

View file

@ -37,6 +37,12 @@ class ExtractMultipleFramesFilter implements VideoFilterInterface
{
$this->priority = $priority;
$this->frameRate = $frameRate;
// Make sure that the destination folder has a trailing slash
if(strcmp( substr($destinationFolder, -1), "/") != 0)
$destinationFolder .= "/";
// Set the destination folder
$this->destinationFolder = $destinationFolder;
}