Let GetNextFile do all the string-building work for SEQUENTIAL.
parent
85654f82a5
commit
dfa63ff031
|
@ -364,7 +364,7 @@ namespace OpenSim.Region.OptionalModules.World.AutoBackup
|
||||||
path = new FileInfo(baseDir + Path.DirectorySeparatorChar + regionName + GetTimeString() + ".oar");
|
path = new FileInfo(baseDir + Path.DirectorySeparatorChar + regionName + GetTimeString() + ".oar");
|
||||||
return path.FullName;
|
return path.FullName;
|
||||||
case NamingType.SEQUENTIAL:
|
case NamingType.SEQUENTIAL:
|
||||||
path = new FileInfo(baseDir + Path.DirectorySeparatorChar + regionName + "_" + GetNextFile(baseDir, regionName) + ".oar");
|
path = new FileInfo(GetNextFile(baseDir, regionName));
|
||||||
return path.FullName;
|
return path.FullName;
|
||||||
default:
|
default:
|
||||||
m_log.Warn("VERY BAD: Unhandled case element " + naming.ToString());
|
m_log.Warn("VERY BAD: Unhandled case element " + naming.ToString());
|
||||||
|
|
Loading…
Reference in New Issue