Rename File/Folder name variables to distinguish them from real (full) paths
Make sure full path is used everywhere (if I didn't miss anything)
This commit is contained in:
1 parent
7b95942653
commit
03b9ea8e49
27 files changed
+165
-188
No files matched your search
@@ -120,20 +120,9 @@ namespace VocaluxeLib.Profile
|
||||
if (filename == "")
|
||||
filename = "1";
|
||||
|
||||
int i = 0;
|
||||
while (File.Exists(Path.Combine(FilePath, filename + ".xml")))
|
||||
{
|
||||
i++;
|
||||
if (!File.Exists(Path.Combine(FilePath, filename + i + ".xml")))
|
||||
filename += i;
|
||||
}
|
||||
|
||||
FileName = filename + ".xml";
|
||||
FileName = CHelper.GetUniqueFileName(FilePath, filename + ".xml", false);
|
||||
}
|
||||
|
||||
if (FileName == String.Empty)
|
||||
return;
|
||||
|
||||
XmlWriter writer;
|
||||
try
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user