rmdir fails because iterator is not released
Open
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 8.8k
- Forks
- 2.1k
- Avg merge
- 20h 7m
- Merged PRs (30d)
- 41
Description
Sorry for not following bug report model but the issue is also reported on nextcloud and fixed
https://help.nextcloud.com/t/unable-to-delete-directories-text-file-busy/86468/3
Adding unset($it); as they say on forum post fixes it
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
The issue names no repository file or test; start by tracing the PHP code path that calls rmdir and inspecting the iterator lifetime around it. Compare the linked Nextcloud report and the suggested unset($it); workaround. Done means reproducing the failure and confirming that directory removal succeeds after the iterator is released.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Needs clarification
- Newbie friendliness
- 42/100