Skip to content

Conversation

@CarlSchwan
Copy link
Member

And correct openapi types for the size.

  • Resolves: #

Summary

TODO

  • ...

Checklist

@CarlSchwan CarlSchwan added this to the Nextcloud 33 milestone Nov 6, 2025
@CarlSchwan CarlSchwan self-assigned this Nov 6, 2025
@CarlSchwan CarlSchwan added the 3. to review Waiting for reviews label Nov 6, 2025
@CarlSchwan CarlSchwan force-pushed the carl/template-manager-cleanup branch 2 times, most recently from f144421 to 8c12590 Compare November 7, 2025 09:15
@CarlSchwan CarlSchwan marked this pull request as ready for review November 12, 2025 14:59
@CarlSchwan CarlSchwan requested review from a team and provokateurin as code owners November 12, 2025 14:59
@CarlSchwan CarlSchwan requested review from come-nc, leftybournes and yemkareems and removed request for a team November 12, 2025 14:59
@CarlSchwan CarlSchwan force-pushed the carl/template-manager-cleanup branch from 8c12590 to ed9cee1 Compare November 17, 2025 08:53
@CarlSchwan CarlSchwan mentioned this pull request Nov 20, 2025
7 tasks
Comment on lines 497 to 500
$folder = $this->get(dirname($path));
if (!($folder instanceof Folder)) {
throw new NotPermittedException("Unable to create folder $path. Parent is not a directory.");
}
Copy link
Contributor

Choose a reason for hiding this comment

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

Does that work with a path like 'folderName'? dirname will return '.' and I’m not sure we handle that correctly in get().

Copy link
Member Author

Choose a reason for hiding this comment

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

fixed and I added some unit tests

And correct openapi types for the size.

Signed-off-by: Carl Schwan <[email protected]>
Allow to remove some boilerplate and also this new function is type
safe.

Signed-off-by: Carl Schwan <[email protected]>
@CarlSchwan CarlSchwan force-pushed the carl/template-manager-cleanup branch from 61f0a5b to 9522dde Compare November 24, 2025 10:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review Waiting for reviews

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants