Title: rmdir is throwing errors
Last modified: July 14, 2020

---

# rmdir is throwing errors

 *  Resolved [ianwijma](https://wordpress.org/support/users/ianwijma/)
 * (@ianwijma)
 * [5 years, 11 months ago](https://wordpress.org/support/topic/rmdir-is-throwing-errors/)
 * Dear updraft,
 * I use your plugin and have some custom task runner which emails me when there
   is an output of the task.
 * Normally this is not an issue. But your plugin seems to execute `rmdir` on a 
   dir that does not seem to be empty. After checking the code I see the following
   comment above the rmdir:
 *     ```
       // Success of this operation is not recorded; we only ultimately care about emptying, not removing entirely (empty folders in our context are harmless)
       ```
   
 * My question was if you guys don’t care about the operation of that function. 
   if you could suppress the output for that function by using the @ operator. So
   turn it into a `@rmdir($src)`.
 * Cheers, Ian.

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [Marc Lacroix](https://wordpress.org/support/users/marcusig/)
 * (@marcusig)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rmdir-is-throwing-errors/#post-13148413)
 * Hi Ian,
 * We’ll look into this.
    Though the `rmdir` should only happen when the directory
   is actually empty.
 * Best,
    Marc.
    -  This reply was modified 5 years, 10 months ago by [Marc Lacroix](https://wordpress.org/support/users/marcusig/).
 *  Thread Starter [ianwijma](https://wordpress.org/support/users/ianwijma/)
 * (@ianwijma)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/rmdir-is-throwing-errors/#post-13148498)
 * Hey Marc,
 * Thank you lots. If any additional info is required, let me know 😀
 * Cheers, Ian.
 *  Thread Starter [ianwijma](https://wordpress.org/support/users/ianwijma/)
 * (@ianwijma)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/rmdir-is-throwing-errors/#post-13278212)
 * Hey Marc,
 * I was wondering if there are any progress update?
 * Cheers,
    Ian.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘rmdir is throwing errors’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [ianwijma](https://wordpress.org/support/users/ianwijma/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/rmdir-is-throwing-errors/#post-13278212)
 * Status: resolved