[Pkg-owncloud-commits] [owncloud] 47/90: Add View::getMount() for stable7
David Prévot
taffit at moszumanska.debian.org
Fri Feb 6 21:10:50 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository owncloud.
commit db51d9aacb743f71109a801586c9e08c6c63a3fe
Author: Robin Appelman <icewind at owncloud.com>
Date: Thu Jan 15 14:01:52 2015 +0100
Add View::getMount() for stable7
---
lib/private/files/view.php | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/lib/private/files/view.php b/lib/private/files/view.php
index 430e9e6..89cbbef 100644
--- a/lib/private/files/view.php
+++ b/lib/private/files/view.php
@@ -113,6 +113,19 @@ class View {
}
/**
+ * get the mountpoint of the storage object for a path
+ * ( note: because a storage is not always mounted inside the fakeroot, the
+ * returned mountpoint is relative to the absolute root of the filesystem
+ * and doesn't take the chroot into account )
+ *
+ * @param string $path
+ * @return \OC\Files\Mount\Mount
+ */
+ public function getMount($path) {
+ return Filesystem::getMountManager()->find($this->getAbsolutePath($path));
+ }
+
+ /**
* resolve a path to a storage and internal path
*
* @param string $path
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list