aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/filesystem.php
diff options
context:
space:
mode:
authorStephan Peijnik <speijnik@anexia-it.com>2014-07-11 10:36:28 +0200
committerMorris Jobke <hey@morrisjobke.de>2014-08-19 13:55:35 +0200
commit2df52e54d712a148f91c0945d95ffac2dc78802a (patch)
treeeef3f86f5c0cd508c6ac2d1489fd056abd4cf920 /lib/private/files/filesystem.php
parentfdfc5c67f8e90ac0a439579e9a64d1a643686bd3 (diff)
downloadnextcloud-server-2df52e54d712a148f91c0945d95ffac2dc78802a.tar.gz
nextcloud-server-2df52e54d712a148f91c0945d95ffac2dc78802a.zip
Fix STORAGE_* constants usage by moving those constants into \OC\Files\Filesystem.
As constants not defined within a class cannot be automatically found by the autoloader moving those constants into a class makes them accessible to code which uses them. Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
Diffstat (limited to 'lib/private/files/filesystem.php')
-rw-r--r--lib/private/files/filesystem.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/private/files/filesystem.php b/lib/private/files/filesystem.php
index 4774d25ad9e..24329754dc1 100644
--- a/lib/private/files/filesystem.php
+++ b/lib/private/files/filesystem.php
@@ -31,11 +31,12 @@
namespace OC\Files;
use OC\Files\Storage\Loader;
-const SPACE_NOT_COMPUTED = -1;
-const SPACE_UNKNOWN = -2;
-const SPACE_UNLIMITED = -3;
class Filesystem {
+ const SPACE_NOT_COMPUTED = -1;
+ const SPACE_UNKNOWN = -2;
+ const SPACE_UNLIMITED = -3;
+
/**
* @var Mount\Manager $mounts
*/