diff --git a/boost.module b/boost.module
index d204a01..61907d1 100644
--- a/boost.module
+++ b/boost.module
@@ -1087,7 +1087,7 @@ function _boost_rmdir($dir, $flush = TRUE) {
     }
   }
   if ($empty_dir) {
-    rmdir($dir);
+    @rmdir($dir);
   }
   return $counter;
 }
