diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-17 20:20:13 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-10-17 20:20:13 +0200 |
commit | d2d2c9a46d86be2b38d6e88c1943e7328ebb26d3 (patch) | |
tree | 2eaf9616555c6101af11df9071fd94f35483d4d4 /lib/private/filechunking.php | |
parent | 76be7cd1ac54a8f4a5707c7a50eee106383aa51d (diff) | |
download | nextcloud-server-d2d2c9a46d86be2b38d6e88c1943e7328ebb26d3.tar.gz nextcloud-server-d2d2c9a46d86be2b38d6e88c1943e7328ebb26d3.zip |
fixes #5367
Diffstat (limited to 'lib/private/filechunking.php')
-rw-r--r-- | lib/private/filechunking.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/private/filechunking.php b/lib/private/filechunking.php index 0dfce696cda..aa4f73c7c05 100644 --- a/lib/private/filechunking.php +++ b/lib/private/filechunking.php @@ -85,6 +85,16 @@ class OC_FileChunking { } } + /** + * Removes one specific chunk + * @param $index + */ + public function remove($index) { + $cache = $this->getCache(); + $prefix = $this->getPrefix(); + $cache->remove($prefix.$index); + } + public function signature_split($orgfile, $input) { $info = unpack('n', fread($input, 2)); $blocksize = $info[1]; |