* NOTE: We cannot put this in inc/classes/ because it would be loaded (again)
* in the class loader. See inc/loader/class_ClassLoader.php for instance
*
- * @see ClassLoader
+ * @see ClassLoader
* @author Roland Haeder <webmaster@mxchange.org>
* @version 0.3.0
* @copyright Copyright(c) 2007, 2008 Roland Haeder, this is free software
* @license GNU GPL 3.0 or any newer version
- * @link http://www.mxchange.org
+ * @link http://www.mxchange.org
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
// Cast to string
$path = (string) $path;
+ // Replace backslashes with slashes
+ $path = str_replace("\\", "/", $path);
+
// Is it defined or not?
- if (!is_dir($path)) {
+ if ((!is_dir($path)) || (!is_readable($path))) {
// Is not a valid path
ApplicationEntryPoint::app_die(sprintf("[%s:] Invalid path (not found) specified. Please make sure it is created.",
__CLASS__