Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

hamza221
Copy link
Contributor

@hamza221 hamza221 commented Oct 4, 2025

  • Resolves: #

Summary

TODO

  • ...

Checklist

@mrsakrano

This comment was marked as spam.

) {
parent::__construct();

$this->rootView = new View();
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

new code should use IRootFolder instead of View

Copy link
Contributor

@come-nc come-nc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It would be better to use Node API intead of View.
Also it feels you took inspiration from EncryptAll which since got cleaned up: #55472

Comment on lines +27 to +31
protected Util $util,
protected IConfig $config,
protected QuestionHelper $questionHelper,
private IUserManager $userManager,
private Util $encryptionUtil,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why two Util?

$path = $folder . '/' . $item['name'];
if ($this->stopCondition($path)) {
$filePath = str_replace('files_encryption/keys/', '', $path);
if (!$this->rootView->getFileInfo($filePath, true, true)) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not file_exists?

Comment on lines +123 to +124
return false;
}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
return false;
}
}
return false;

I suppose?

return $orphanedKeys;
}

private function stopCondition(string $path) : bool {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add a comment explaining what the function does, when does it return true/false?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants