Let GetNextFile do all the string-building work for SEQUENTIAL.

bulletsim
Sean McNamara 2011-02-19 20:15:38 -05:00
parent 85654f82a5
commit dfa63ff031
1 changed files with 1 additions and 1 deletions

View File

@ -364,7 +364,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
path = new FileInfo(baseDir + Path.DirectorySeparatorChar + regionName + GetTimeString() + ".oar");
return path.FullName;
case NamingType.SEQUENTIAL:
path = new FileInfo(baseDir + Path.DirectorySeparatorChar + regionName + "_" + GetNextFile(baseDir, regionName) + ".oar");
path = new FileInfo(GetNextFile(baseDir, regionName));
return path.FullName;
default:
m_log.Warn("VERY BAD: Unhandled case element " + naming.ToString());