summaryrefslogtreecommitdiffstats
path: root/lib/private/files
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2016-04-07 19:51:27 +0200
committerStefan Weil <sw@weilnetz.de>2016-04-07 19:51:27 +0200
commitb1a856d7b7e184241fcd862842d4aecddd9a00ec (patch)
treedad8a4f1c34e1c97ead9cd50a7c2f44469cb536e /lib/private/files
parent6eefea1bb65897b0a1cf8668b15998a12ae197b9 (diff)
downloadnextcloud-server-b1a856d7b7e184241fcd862842d4aecddd9a00ec.tar.gz
nextcloud-server-b1a856d7b7e184241fcd862842d4aecddd9a00ec.zip
lib: Fix typos (found by codespell)
Signed-off-by: Stefan Weil <sw@weilnetz.de>
Diffstat (limited to 'lib/private/files')
-rw-r--r--lib/private/files/cache/wrapper/cachewrapper.php2
-rw-r--r--lib/private/files/node/root.php2
-rw-r--r--lib/private/files/storage/common.php2
-rw-r--r--lib/private/files/storage/local.php2
-rw-r--r--lib/private/files/storage/polyfill/copydirectory.php2
-rw-r--r--lib/private/files/storage/wrapper/permissionsmask.php2
-rw-r--r--lib/private/files/view.php2
7 files changed, 7 insertions, 7 deletions
diff --git a/lib/private/files/cache/wrapper/cachewrapper.php b/lib/private/files/cache/wrapper/cachewrapper.php
index 883f4709358..8c77e3c340e 100644
--- a/lib/private/files/cache/wrapper/cachewrapper.php
+++ b/lib/private/files/cache/wrapper/cachewrapper.php
@@ -72,7 +72,7 @@ class CacheWrapper extends Cache {
* @return ICacheEntry[]
*/
public function getFolderContents($folder) {
- // cant do a simple $this->cache->.... call here since getFolderContentsById needs to be called on this
+ // can't do a simple $this->cache->.... call here since getFolderContentsById needs to be called on this
// and not the wrapped cache
$fileId = $this->getId($folder);
return $this->getFolderContentsById($fileId);
diff --git a/lib/private/files/node/root.php b/lib/private/files/node/root.php
index 69c98368dfd..04866e60b87 100644
--- a/lib/private/files/node/root.php
+++ b/lib/private/files/node/root.php
@@ -187,7 +187,7 @@ class Root extends Folder implements IRootFolder {
}
}
- //most operations cant be done on the root
+ //most operations can't be done on the root
/**
* @param string $targetPath
diff --git a/lib/private/files/storage/common.php b/lib/private/files/storage/common.php
index 1d4801e5b97..df0d9695449 100644
--- a/lib/private/files/storage/common.php
+++ b/lib/private/files/storage/common.php
@@ -634,7 +634,7 @@ abstract class Common implements Storage, ILockingStorage {
public function getMetaData($path) {
$permissions = $this->getPermissions($path);
if (!$permissions & \OCP\Constants::PERMISSION_READ) {
- //cant read, nothing we can do
+ //can't read, nothing we can do
return null;
}
diff --git a/lib/private/files/storage/local.php b/lib/private/files/storage/local.php
index b6d0ec3fb34..9f093ce048a 100644
--- a/lib/private/files/storage/local.php
+++ b/lib/private/files/storage/local.php
@@ -225,7 +225,7 @@ class Local extends \OC\Files\Storage\Common {
}
if ($this->is_dir($path1)) {
- // we cant move folders across devices, use copy instead
+ // we can't move folders across devices, use copy instead
$stat1 = stat(dirname($this->getSourcePath($path1)));
$stat2 = stat(dirname($this->getSourcePath($path2)));
if ($stat1['dev'] !== $stat2['dev']) {
diff --git a/lib/private/files/storage/polyfill/copydirectory.php b/lib/private/files/storage/polyfill/copydirectory.php
index 22bfe369738..d4cac117ade 100644
--- a/lib/private/files/storage/polyfill/copydirectory.php
+++ b/lib/private/files/storage/polyfill/copydirectory.php
@@ -76,7 +76,7 @@ trait CopyDirectory {
}
/**
- * For adapters that dont support copying folders natively
+ * For adapters that don't support copying folders natively
*
* @param $source
* @param $target
diff --git a/lib/private/files/storage/wrapper/permissionsmask.php b/lib/private/files/storage/wrapper/permissionsmask.php
index 7fa64f82ba6..01dd78d418c 100644
--- a/lib/private/files/storage/wrapper/permissionsmask.php
+++ b/lib/private/files/storage/wrapper/permissionsmask.php
@@ -32,7 +32,7 @@ use OCP\Constants;
*
* This can be used to restrict update, create, delete and/or share permissions of a storage
*
- * Note that the read permissions cant be masked
+ * Note that the read permissions can't be masked
*/
class PermissionsMask extends Wrapper {
/**
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 4421a016356..aac33a4598c 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -742,7 +742,7 @@ class View {
$this->writeUpdate($storage2, $internalPath2);
} else if ($result) {
- if ($internalPath1 !== '') { // dont do a cache update for moved mounts
+ if ($internalPath1 !== '') { // don't do a cache update for moved mounts
$this->renameUpdate($storage1, $storage2, $internalPath1, $internalPath2);
}
}