public static function setDirectoryMode($mode)
 {
     self::$directory_mode = $mode;
 }