Move kotlinx.io.files package to a separate module#411
Move kotlinx.io.files package to a separate module#411
Conversation
|
JIC: there is one usage of |
|
In short term, the change should not break Ktor as long as a new artifact is added to dependencies. |
3f3ca2f to
1e1544e
Compare
|
One of the questions still opened for me is the name of a new module. It should include something like WDYT? |
if we create a module with a different name, will we have two filesystem modules with a different name at the same time? |
Yes, we will.
It's always an option. |
Ok, so we'll have to use different package names anyway and having both the legacy and a new API inside a single module will ease the migration as we'll be able to supply deprecation with a meaningful replacement expression. |
b335f42 to
bf8393b
Compare
|
Ok, the current approach with the module (and its name) looks fine: we'll add a new API into it, that'll unlock easier migration compared to two separate artifacts. |
|
Hi, will this get merged soon? |
|
@MohammadKHC, no, I don't think so: there are some concerns how features like memory-mapped files could be implemented, and until I figured it out (there's no decision so far) this PR will stay on hold. |
Move all filesystem-related functionality to a separate module.
While the library itself is getting closer to stabilization,
kotlinx.io.filesis getting closer to a trash bin.There's no way existing filesystem-related functionality will be stabilized. Instead it will be deprecated and replaced with a (hopefully) better API.
With a separate module, it'll be easier to manage different stability and depreciation levels.
Closes #319