Revision aaea2643
Added by Scott Ullrich about 20 years ago
etc/inc/pfsense-utils.inc | ||
---|---|---|
809 | 809 |
* create directory if it doesn't already exist and isn't a file! |
810 | 810 |
*/ |
811 | 811 |
function safe_mkdir($path, $mode=0755) { |
812 |
global $g; |
|
813 |
|
|
814 |
if($g['platform'] == "cdrom") |
|
815 |
return; |
|
816 |
|
|
812 | 817 |
if (!is_file($path) && !is_dir($path)) |
813 | 818 |
return mkdir($path, $mode); |
814 | 819 |
else |
Also available in: Unified diff
if platform is cdrom do not attempt mkdir