AzureSiteReplicator.Data.Site.Site C# (CSharp) Method

Site() public method

public Site ( string profilePath ) : System
profilePath string
return System
        public Site(string profilePath)
        {
            _profilePath = profilePath;
            _settings = new PublishSettings(_profilePath);

            string rootPath = Path.GetDirectoryName(_profilePath);
            _sitePath = Path.Combine(rootPath, _settings.SiteName);

            if (!FileHelper.FileSystem.Directory.Exists(_sitePath))
            {
                FileHelper.FileSystem.Directory.CreateDirectory(_sitePath);
            }
        }