-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
feat(files): add command to automatically rename filenames #51608
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
4343ae9
to
0f0846f
Compare
parent::configure(); | ||
|
||
$this | ||
->setName('files:windows-compatible-filenames') |
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.
The name could be more self-explanatory :)
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.
do you have a suggestion? I think the name is already very verbose
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.
Is this windows only? Or is there other reasons to enable this?
If windows only: files:fix-invalid-windows-filenames
If more general: files:fix-invalid-filenames
?
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.
This is a different command. It is not about fixing but about enabling the WCF feature (windows compatible filenames).
This enforces windows compatible filenames (see also existing flag in files admin settings)
0f0846f
to
5f0e99a
Compare
Hello @susnux What do you think about a simulation-parameter? |
d2481e2
to
1ec65e7
Compare
This is implemented using |
Co-authored-by: Ferdinand Thiessen <[email protected]> Co-authored-by: Côme Chilliet <[email protected]> Signed-off-by: Ferdinand Thiessen <[email protected]>
Signed-off-by: Ferdinand Thiessen <[email protected]>
1ec65e7
to
437349c
Compare
Can we please expose the sanitizeName method in OCP? By adding it directly to IFilenameValidator perhaps? This would be very useful for integration apps like integration_google, integration_dropbox etc |
Summary
Make it easier for admins to rename all files when e.g. enabling Windows compatibility (ref #44963 ).
Checklist