This old stuff needs to be rewritten.
[core.git] / inc / classes / main / file_directories / io_stream / class_FileIoStream.php
index 9d1bc1a..f6752b2 100644 (file)
@@ -83,14 +83,8 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                        try {
                                $fileInstance = ObjectFactory::createObjectByConfiguredName('file_raw_output_class', array($fileName, 'wb'));
                        } catch (FileIoException $e) {
-                               // Create missing directory
-                               $dirName = dirname($fileName);
-                               for ($idx2 = 0; $idx2 < (2 - $idx); $idx2++) {
-                                       $dirName = dirname($dirName);
-                               } // END - for
-
-                               // Try to create it
-                               @mkdir($dirName);
+                               // Bail out
+                               ApplicationEntryPoint::app_exit('The application has made a fatal error. Exception: ' $e->__toString() . ' with message: ' . $e->getMessage());
                        }
                } // END - for