public function getFileDirectory(IFile $file): string
    {
        return implode(DIRECTORY_SEPARATOR, array_filter([
            $this->directory,
            // TODO: check if used correct hash.
            // Which value should be passed into getDirectoryHash? Directory name or file id?
            $this->getDirectoryHash((string) $file->getId()),
        ]));
    }
public function getFileDirectory(IFile $file): string
    {
        return implode(DIRECTORY_SEPARATOR, array_filter([
            $this->directory,
            // TODO: check if used correct hash.
            // Which value should be passed into getDirectoryHash? Directory name or file id?
            $this->getDirectoryHash((string) $file->getId()),
        ]));
    }
public function getFileDirectory ( IFile $ file ) : string { return implode ( DIRECTORY_SEPARATOR , array_filter ( [ $ this -> directory , // TODO: check if used correct hash. // Which value should be passed into getDirectoryHash? Directory name or file id? $ this -> getDirectoryHash ( ( string ) $ file -> getId ( ) ) , ] ) ) ; }
Returns target directory for uploaded file
@param IFile $file
@return string
Returns target directory for uploaded file