Introduced FileNotFoundException
[core.git] / inc / classes / main / file_directories / io_stream / class_FileIoStream.php
index 9d1bc1a1b0d6dcbfa3b61218da74bad0d3a9072a..d0ff549078ded20e66400723d7c6e58aaa1b0feb 100644 (file)
@@ -82,15 +82,9 @@ class FileIoStream extends BaseFrameworkSystem implements FileInputStreamer, Fil
                        // Get a file output pointer
                        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);
+                       } catch (FileNotFoundException $e) {
+                               // Bail out
+                               ApplicationEntryPoint::app_exit('The application has made a fatal error. Exception: ' . $e->__toString() . ' with message: ' . $e->getMessage());
                        }
                } // END - for