Flow\File::getChunkPath PHP Method

getChunkPath() public method

Return chunk path
public getChunkPath ( integer $index ) : string
$index integer
return string
    public function getChunkPath($index)
    {
        return $this->config->getTempDir() . DIRECTORY_SEPARATOR . $this->identifier . '_' . $index;
    }

Usage Example

Example #1
0
 /**
  * @covers ::getChunkPath
  */
 public function testFile_construct_getChunkPath()
 {
     $request = new Request($this->requestArr);
     $file = new File($this->config, $request);
     $expPath = $this->vfs->url() . DIRECTORY_SEPARATOR . sha1($this->requestArr['flowIdentifier']) . '_1';
     $this->assertSame($expPath, $file->getChunkPath(1));
 }
All Usage Examples Of Flow\File::getChunkPath