Skip to content

OS.move_to_trash() not functioning or poorly documented #61942

Closed
@NationalityNZ

Description

Godot version

4.0 Alpha 9

System information

Windows 10

Issue description

Using OS.move_to_trash always produces a generic failure (error code 1). This could be due to my windows configuration, or it could also be due to a bug, or it could be because OS.move_to_trash() is very minimally documented.

Steps to reproduce

Run the project and click the button.

func _on_button_pressed():
	var result = OS.move_to_trash("res://test.txt")
	print(result)

Minimal reproduction project

Move_To_TrashProject.zip

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions