-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
Delete/Rename URIs #1509
Comments
Indeed. Let's get these in. We could not add them easily in 1.4 as it would be a breaking change in the URI type - so we will pop it in 2.0 |
The underlying work to provide implementations of these methods has not been done yet pending discussion, so this will break the build. This also adds Destroy() as described in fyne-io#1509, though again no implementation is defined yet. This also adds detailed comments to the members of the URI interface, to make it clear what is expected of URI implementations.
I have rolled this into #1665. I think adding delete functionality via Thoughts? |
All good points I guess. Not sure that I prefer Destroy() over Delete() though (we use it internally to free memory which I think is different. |
Landed, great job thanks @charlesdaniels and the team. |
Is your feature request related to a problem? Please describe:
Currently there is no straightforward way to remove or rename a file by URI.
Is it possible to construct a solution with the existing API?
I am implementing a hacky solution that breaks the URI apart into a normal file path, does the required operation, and then (for renames) parses a new URI.
Describe the solution you'd like to see:
It would be nice if this functionality were included as part of the URI type
The text was updated successfully, but these errors were encountered: