protected function setupTargetPath($image)
    {
        $this->thumbnailPath = dirname($image) . '/' . $this->thumbnailsFolder . '/';
        if (!is_dir($this->thumbnailPath)) {
            $filesystem = new Filesystem();
            $filesystem->mkdir($this->thumbnailPath);
        }
    }
protected function setupTargetPath($image)
    {
        $this->thumbnailPath = dirname($image) . '/' . $this->thumbnailsFolder . '/';
        if (!is_dir($this->thumbnailPath)) {
            $filesystem = new Filesystem();
            $filesystem->mkdir($this->thumbnailPath);
        }
    }
protected function setupTargetPath ( $ image ) { $ this -> thumbnailPath = dirname ( $ image ) . '/' . $ this -> thumbnailsFolder . '/' ; if ( ! is_dir ( $ this -> thumbnailPath ) ) { $ filesystem = new Filesystem ( ) ; $ filesystem -> mkdir ( $ this -> thumbnailPath ) ; } }
Sets up the target path and creates it if it does not exist
Sets up the target path and creates it if it does not exist