This is a copy of KIO::suggestName. It doesn't use anything from KIO in its implementation and this patch enables to use it without pulling in all the baggage that comes with KIO
Details
Details
- Reviewers
dfaure - Commits
- R244:03b9bdee4f52: Add function to suggest a unique filename
Port the one use in KDE Connect to it
Diff Detail
Diff Detail
- Repository
- R244 KCoreAddons
- Branch
- suggestname
- Lint
No Linters Available - Unit
No Unit Test Coverage - Build Status
Buildable 14221 Build 14239: arc lint + arc unit
Comment Actions
Please "move" (copy) the autotest as well, see kio/autotests/globaltest.cpp
Typo in the commit log: s/it's/its/
autotests/kfileutilstest.cpp | ||
---|---|---|
2 ↗ | (On Diff #62218) | Liar :-) I wrote the first version of this test method. |
src/lib/io/kfileutils.cpp | ||
3 | ditto | |
65 | You can remove this TODO. By moving this code to KCoreAddons we are finally closing the lid on this TODO. |