Proyectos de Subversion LeadersLinked - Services

Rev

Rev 672 | Mostrar el archivo completo | | | Autoría | Ultima modificación | Ver Log |

Rev 672 Rev 747
Línea 327... Línea 327...
327
     */
327
     */
328
    public function composePathToFilename($type, $code, $filename)
328
    public function composePathToFilename($type, $code, $filename)
329
    {
329
    {
330
        $path = $this->getPathByType($type);
330
        $path = $this->getPathByType($type);
331
        $path = $path . DIRECTORY_SEPARATOR . $code;
331
        $path = $path . DIRECTORY_SEPARATOR . $code;
332
        if (! file_exists($path)) {
332
        if (!file_exists($path)) {
333
            mkdir($path, 0775, true);
333
            mkdir($path, 0775, true);
334
        }
334
        }
335
        return $path . DIRECTORY_SEPARATOR . $filename;
335
        return $path . DIRECTORY_SEPARATOR . $filename;
336
    }
336
    }