Skip to content

fs::remove_all cannot delete non-directory files #6

Closed
@actboy168

Description

@actboy168

Describe the bug
fs::remove_all should allow deletion of a file.

To Reproduce

assert(fs::remove_all("test.txt") == 1)
assert(fs::remove_all("test.txt") == 0)

Expected behavior
But now it will throw an exception.

Additional context

Metadata

Metadata

Assignees

Labels

available on masterFix is done on master branch, issue closed on next releasebugSomething isn't workinghighSeverity: high

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions