public override void Init() { if (RootPathType == RootPathType.Default) { if (RootPath == null) { RootPath = String.Format("data/data/{0}/", Package.Name); } else { if (RootPath[0] == '/') { RootPath = RootPath.Substring(1); } if (RootPath.Last() != '/') { RootPath += '/'; } } } else if (RootPathType == RootPathType.PathPrepare) { RootPathPrepareRegexes = Package.RootPathPrepares.First(c => c.Name == RootPath).PathRegexes; } }