summaryrefslogtreecommitdiffstats
path: root/apps/files_encryption/appinfo
diff options
context:
space:
mode:
authorSam Tuke <samtuke@owncloud.com>2013-04-09 19:19:27 +0200
committerSam Tuke <samtuke@owncloud.com>2013-04-09 19:19:27 +0200
commit109fe198c3b8ffd5a4f7f4a4aba6639480895644 (patch)
tree7a9240007df1d71cc2b3ef7d1adb9e963f8ae374 /apps/files_encryption/appinfo
parent400cf5beb30de7475520192e840ddb899d0f742e (diff)
downloadnextcloud-server-109fe198c3b8ffd5a4f7f4a4aba6639480895644.tar.gz
nextcloud-server-109fe198c3b8ffd5a4f7f4a4aba6639480895644.zip
Added info about filesystem method access conventions
Diffstat (limited to 'apps/files_encryption/appinfo')
-rw-r--r--apps/files_encryption/appinfo/spec.txt14
1 files changed, 14 insertions, 0 deletions
diff --git a/apps/files_encryption/appinfo/spec.txt b/apps/files_encryption/appinfo/spec.txt
index bb15864cbb7..a1846ca47ff 100644
--- a/apps/files_encryption/appinfo/spec.txt
+++ b/apps/files_encryption/appinfo/spec.txt
@@ -47,6 +47,20 @@ Lost password recovery
In order to enable users to read their encrypted files in the event of a password loss/reset scenario, administrators can choose to enable a 'recoveryAdmin' account. This is a user that all user files will automatically be shared to of the option is enabled. This allows the recoveryAdmin user to generate new keyfiles for the user. By default the UID of the recoveryAdmin is 'recoveryAdmin'.
+OC_FilesystemView
+-----------------
+
+files_encryption deals extensively with paths and the filesystem. In order to minimise bugs, it makes calls to filesystem methods in a consistent way: OC_FilesystemView{} objects always use '/' as their root, and specify paths each time particular methods are called. e.g. do this:
+
+$view->file_exists( 'path/to/file' );
+
+Not:
+
+$view->chroot( 'path/to' );
+$view->file_exists( 'file' );
+
+Using this convention means that $view objects are more predictable and less likely to break. Problems with paths are the #1 cause of bugs in this app, and consistent $view handling is an important way to prevent them.
+
Notes
-----