diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-07-02 16:34:58 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-07-25 00:29:27 +0200 |
commit | 94560c68ba8974e72098e525ff1d96f11a3ae2e0 (patch) | |
tree | 7d68758e64d21a95db28845f821d1c41c8c21ce6 | |
parent | ff86b6f1346be9eb90ad82ae49742d22d4ee3e9d (diff) | |
download | nextcloud-server-94560c68ba8974e72098e525ff1d96f11a3ae2e0.tar.gz nextcloud-server-94560c68ba8974e72098e525ff1d96f11a3ae2e0.zip |
rename constants
-rw-r--r-- | lib/files/filesystem.php | 5 | ||||
-rw-r--r-- | lib/files/storage/common.php | 2 | ||||
-rw-r--r-- | lib/files/storage/local.php | 2 |
3 files changed, 5 insertions, 4 deletions
diff --git a/lib/files/filesystem.php b/lib/files/filesystem.php index d6ebe7d629a..4281ebba99d 100644 --- a/lib/files/filesystem.php +++ b/lib/files/filesystem.php @@ -31,8 +31,9 @@ namespace OC\Files; use OC\Files\Storage\Loader; -const FREE_SPACE_UNKNOWN = -2; -const FREE_SPACE_UNLIMITED = -3; +const SPACE_NOT_COMPUTED = -1; +const SPACE_UNKNOWN = -2; +const SPACE_UNLIMITED = -3; class Filesystem { /** diff --git a/lib/files/storage/common.php b/lib/files/storage/common.php index 3da13ac4df0..8cd978f5b4d 100644 --- a/lib/files/storage/common.php +++ b/lib/files/storage/common.php @@ -366,6 +366,6 @@ abstract class Common implements \OC\Files\Storage\Storage { * @return int */ public function free_space($path) { - return \OC\Files\FREE_SPACE_UNKNOWN; + return \OC\Files\SPACE_UNKNOWN; } } diff --git a/lib/files/storage/local.php b/lib/files/storage/local.php index b08fd73ce19..5209fabc30a 100644 --- a/lib/files/storage/local.php +++ b/lib/files/storage/local.php @@ -265,7 +265,7 @@ if (\OC_Util::runningOnWindows()) { public function free_space($path) { $space = @disk_free_space($this->datadir . $path); if ($space === false) { - return \OC\Files\FREE_SPACE_UNKNOWN; + return \OC\Files\SPACE_UNKNOWN; } return $space; } |