OpenSim/Region/ScriptEngine/Shared/CodeTools/Compiler.cs
/// <summary>
/// Create the directory where compiled scripts are stored if it does not already exist.
/// </summary>
Create the directory where compiled scripts are stored if it does not already exist.
Create the directory where compiled scripts are stored if it does not already exist .
private void CheckOrCreateScriptsDirectory()
        {
            if (!Directory.Exists(ScriptEnginesPath))
            {
                try
                {
                    Directory.CreateDirectory(ScriptEnginesPath);
                }
                catch (Exception ex)
                {
                    m_log.Error("[Compiler]: Exception trying to create ScriptEngine directory \"" + ScriptEnginesPath + "\": " + ex.ToString());
                }
            }
            if (!Directory.Exists(Path.Combine(ScriptEnginesPath,
                    m_scriptEngine.World.RegionInfo.RegionID.ToString())))
            {
                try
                {
                    Directory.CreateDirectory(Path.Combine(ScriptEnginesPath,
                        m_scriptEngine.World.RegionInfo.RegionID.ToString()));
                }
                catch (Exception ex)
                {
                    m_log.Error("[Compiler]: Exception trying to create ScriptEngine directory \"" + Path.Combine(ScriptEnginesPath,
                                            m_scriptEngine.World.RegionInfo.RegionID.ToString()) + "\": " + ex.ToString());
                }
            }
        }
private void CheckOrCreateScriptsDirectory ( ) { if ( ! Directory . Exists ( ScriptEnginesPath ) ) { try { Directory . CreateDirectory ( ScriptEnginesPath ) ; } catch ( Exception ex ) { m_log . Error ( " \" " + ScriptEnginesPath + " \" " + ex . ToString ( ) ) ; } } if ( ! Directory . Exists ( Path . Combine ( ScriptEnginesPath , m_scriptEngine . World . RegionInfo . RegionID . ToString ( ) ) ) ) { try { Directory . CreateDirectory ( Path . Combine ( ScriptEnginesPath , m_scriptEngine . World . RegionInfo . RegionID . ToString ( ) ) ) ; } catch ( Exception ex ) { m_log . Error ( " \" " + Path . Combine ( ScriptEnginesPath , m_scriptEngine . World . RegionInfo . RegionID . ToString ( ) ) + " \" " + ex . ToString ( ) ) ; } } }
Create the directory where compiled scripts are stored if it does not already exist.
Create the directory where compiled scripts are stored if it does not already exist .