mirror of
https://github.com/opensim/opensim.git
synced 2026-08-06 01:06:30 +08:00
Let GetNextFile do all the string-building work for SEQUENTIAL.
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user