fn read_sc_config_from_default_file() -> Result<Self, IoError> {
        let sc_file_path = build_server_config_file_path(SC_CONFIG_FILE);

        if Path::new(&sc_file_path).exists() {
            // if file exists, it must readable and correct
            let sc_config_file = ScConfigFile::from_file(sc_file_path)?;
            sc_config_file.to_sc_config()
        } else {
            // no config file, return default parameters
            Ok(ScConfig::default())
        }
    }
/// look-up default configuration, if it doesn't exist, return defautls
look-up default configuration, if it doesn't exist, return defautls
look - up default configuration if it doesn ' t exist return defautls
fn read_sc_config_from_default_file() -> Result<Self, IoError> {
        let sc_file_path = build_server_config_file_path(SC_CONFIG_FILE);
        if Path::new(&sc_file_path).exists() {
            // if file exists, it must readable and correct
            let sc_config_file = ScConfigFile::from_file(sc_file_path)?;
            sc_config_file.to_sc_config()
        } else {
            // no config file, return default parameters
            Ok(ScConfig::default())
        }
    }
fn read_sc_config_from_default_file ( ) -> Result < Self , IoError > { let sc_file_path = build_server_config_file_path ( SC_CONFIG_FILE ) ; if Path :: new ( & sc_file_path ) . exists ( ) { // if file exists, it must readable and correct let sc_config_file = ScConfigFile :: from_file ( sc_file_path ) ? ; sc_config_file . to_sc_config ( ) } else { // no config file, return default parameters Ok ( ScConfig :: default ( ) ) } }
look-up default configuration, if it doesn't exist, return defautls
look - up default configuration if it doesn ' t exist return defautls