diff options
author | Robin Appelman <icewind@owncloud.com> | 2013-01-16 21:36:04 +0100 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2013-01-16 21:36:04 +0100 |
commit | f9c42a196f03bb193b07a8f5f8ecf42b911ef4b5 (patch) | |
tree | a3b4eb27091d1fb34f3145fd785727f58f1b3e33 | |
parent | 29ec00797948d98ffa5dcb0baa1518630ab3ef56 (diff) | |
download | nextcloud-server-f9c42a196f03bb193b07a8f5f8ecf42b911ef4b5.tar.gz nextcloud-server-f9c42a196f03bb193b07a8f5f8ecf42b911ef4b5.zip |
Cache: no longer using this file
-rw-r--r-- | lib/files/file.php | 61 |
1 files changed, 0 insertions, 61 deletions
diff --git a/lib/files/file.php b/lib/files/file.php deleted file mode 100644 index 0d33cea7ee7..00000000000 --- a/lib/files/file.php +++ /dev/null @@ -1,61 +0,0 @@ -<?php -/** - * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com> - * This file is licensed under the Affero General Public License version 3 or - * later. - * See the COPYING-README file. - */ - -namespace OC\Files; - -/** - * representation of the location a file or folder is stored - */ - -class File{ - /** - * @var Storage\Storage $storage - */ - private $storage; - /** - * @var string internalPath - */ - private $internalPath; - - public function __construct(Storage\Storage $storage, $internalPath){ - $this->storage = $storage; - $this->internalPath = $internalPath; - } - - public static function resolve($fullPath){ - $storage = null; - $internalPath = ''; - list($storage, $internalPath) = \OC\Files\Filesystem::resolvePath($fullPath); - return new File($storage, $internalPath); - } - - /** - * get the internal path of the file inside the filestorage - * @return string - */ - public function getInternalPath(){ - return $this->internalPath; - } - - /** - * get the storage the file is stored in - * @return \OC\Files\Storage\Storage - */ - public function getStorage(){ - return $this->storage; - } - - /** - * get the id of the storage the file is stored in - * @return string - */ - public function getStorageId(){ - return $this->storage->getId(); - } - -} |