Move std::fs::file.remove to std::fs::path::Path.remove #586
Labels
accepting contributions
Issues that are suitable to be worked on by anybody, not just maintainers
feature
New things to add to Inko, such as a new standard library module
std
Changes related to the standard library
Milestone
Description
This module method is a bit of a remnant from when we had more module methods for file system operations. In the interest of being consistent and only having one way of doing things, this method should be move to
Path.remove
as an instance method.While this seems a bit annoying, it helps keep path related logic in the
Path
type. This in turn means that if at some point we want to change it to not be backed by aString
(#314), we keep all the changes contained to a single type.Related work
No response
The text was updated successfully, but these errors were encountered: