summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorRobin Appelman <robin@icewind.nl>2024-01-17 17:53:37 +0100
committerRobin Appelman <robin@icewind.nl>2024-01-17 17:53:37 +0100
commit0492e0f1d441feeb69d4d1bc20177bf542cb189f (patch)
tree7325f9fedf94878e6aae1339d525fcca3dca327b /core
parent7bf82fc312acb775bf150ce506d16a05989cd43e (diff)
downloadnextcloud-server-0492e0f1d441feeb69d4d1bc20177bf542cb189f.tar.gz
nextcloud-server-0492e0f1d441feeb69d4d1bc20177bf542cb189f.zip
Revert "add key location to info:file output"
This reverts commit 7bf82fc312acb775bf150ce506d16a05989cd43e.
Diffstat (limited to 'core')
-rw-r--r--core/Command/Info/File.php13
1 files changed, 0 insertions, 13 deletions
diff --git a/core/Command/Info/File.php b/core/Command/Info/File.php
index 8eecf383070..d62feeb5a17 100644
--- a/core/Command/Info/File.php
+++ b/core/Command/Info/File.php
@@ -5,12 +5,10 @@ declare(strict_types=1);
namespace OC\Core\Command\Info;
use OC\Files\ObjectStore\ObjectStoreStorage;
-use OC\Files\View;
use OCA\Files_External\Config\ExternalMountPoint;
use OCA\GroupFolders\Mount\GroupMountPoint;
use OCP\Files\Folder;
use OCP\Files\IHomeStorage;
-use OCP\Files\IRootFolder;
use OCP\Files\Mount\IMountPoint;
use OCP\Files\Node;
use OCP\Files\NotFoundException;
@@ -25,16 +23,13 @@ use Symfony\Component\Console\Output\OutputInterface;
class File extends Command {
private IL10N $l10n;
- private View $rootView;
public function __construct(
IFactory $l10nFactory,
private FileUtils $fileUtils,
- private \OC\Encryption\Util $encryptionUtil
) {
$this->l10n = $l10nFactory->get("core");
parent::__construct();
- $this->rootView = new View();
}
protected function configure(): void {
@@ -59,14 +54,6 @@ class File extends Command {
$output->writeln(" mimetype: " . $node->getMimetype());
$output->writeln(" modified: " . (string)$this->l10n->l("datetime", $node->getMTime()));
$output->writeln(" " . ($node->isEncrypted() ? "encrypted" : "not encrypted"));
- if ($node->isEncrypted()) {
- $keyPath = $this->encryptionUtil->getFileKeyDir('', $node->getPath());
- if ($this->rootView->file_exists($keyPath)) {
- $output->writeln(" encryption key at: " . $keyPath);
- } else {
- $output->writeln(" <error>encryption key not found</error> should be location at: " . $keyPath);
- }
- }
$output->writeln(" size: " . Util::humanFileSize($node->getSize()));
$output->writeln(" etag: " . $node->getEtag());
if ($node instanceof Folder) {