diff --git a/services/fs.inc b/services/fs.inc
index 9357fde..605c2a3 100644
--- a/services/fs.inc
+++ b/services/fs.inc
@@ -142,7 +142,7 @@ class StorageFS extends StorageContainer implements StorageContainerInterface {
       $test_path = $path . $dir;
 
       while (!is_dir($this->instancePath($test_path)) &&
-        !@mkdir($this->instancePath($test_path))) {
+        !drupal_mkdir($this->instancePath($test_path), null, TRUE)) {
         $count++;
         $test_path = $path . $dir . '_' . $count;
       }
