-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
refactor(template-manager): Modernize template manager API #56251
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
f144421 to
8c12590
Compare
8c12590 to
ed9cee1
Compare
lib/private/Files/Node/Folder.php
Outdated
| $folder = $this->get(dirname($path)); | ||
| if (!($folder instanceof Folder)) { | ||
| throw new NotPermittedException("Unable to create folder $path. Parent is not a directory."); | ||
| } |
There was a problem hiding this comment.
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().
There was a problem hiding this comment.
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]>
61f0a5b to
9522dde
Compare
And correct openapi types for the size.
Summary
TODO
Checklist
3. to review, feature component)stable32)