Skip to content

Commit 933fd9c

Browse files
Merge pull request #3240 from nextcloud/storage-interface-tweaks
minor storage interface tweaks
2 parents 5d985de + f73527c commit 933fd9c

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/public/Files/Cache/IScanner.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ interface IScanner {
3232
const SCAN_RECURSIVE = true;
3333
const SCAN_SHALLOW = false;
3434

35+
const REUSE_NONE = 0;
3536
const REUSE_ETAG = 1;
3637
const REUSE_SIZE = 2;
3738

lib/public/Files/Storage/IStorage.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ public function getDirectDownload($path);
383383
public function verifyPath($path, $fileName);
384384

385385
/**
386-
* @param \OCP\Files\Storage $sourceStorage
386+
* @param \OCP\Files\Storage|\OCP\Files\Storage\IStorage $sourceStorage
387387
* @param string $sourceInternalPath
388388
* @param string $targetInternalPath
389389
* @return bool
@@ -392,7 +392,7 @@ public function verifyPath($path, $fileName);
392392
public function copyFromStorage(\OCP\Files\Storage $sourceStorage, $sourceInternalPath, $targetInternalPath);
393393

394394
/**
395-
* @param \OCP\Files\Storage $sourceStorage
395+
* @param \OCP\Files\Storage|\OCP\Files\Storage\IStorage $sourceStorage
396396
* @param string $sourceInternalPath
397397
* @param string $targetInternalPath
398398
* @return bool

0 commit comments

Comments
 (0)