File.... is changed?

Hello, i saw on the changelog this:
Build 804:
minecrell: Update for SpongeCommon changes
minecrell: Update for SpongeCommon changes
> minecrell: Replace java.io.File with java.nio.file.Path

and i have a lot of error with that, how can i modifiy my code of this?

Everything is said you should replace java.io.File with java.nio.file.Path in your code

1 Like

This is completely up to you. While SpongeAPI uses the new file I/O API introduced in Java 7 now (which is recommended to use), you can always convert between the objects using path.toFile() and file.toPath().

Also see this document for more information how to switch to the new API (including a mapping of old methods to their new ones): Legacy File I/O Code (The Java™ Tutorials > Essential Classes > Basic I/O)