This old stuff needs to be rewritten.
authorRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 14:24:19 +0000 (16:24 +0200)
committerRoland Haeder <roland@mxchange.org>
Tue, 7 Apr 2015 14:24:19 +0000 (16:24 +0200)
Signed-off-by: Roland Häder <roland@mxchange.org>
inc/classes/main/file_directories/io_stream/class_FileIoStream.php

index 9d1bc1a1b0d6dcbfa3b61218da74bad0d3a9072a..f6752b27f0c9d93bbf2f4029232b28d11092b569 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