edit
This commit is contained in:
@@ -288,13 +288,13 @@ public partial class copydownload : System.Web.UI.Page
|
||||
string fname = Path.GetFileName(file);
|
||||
foreach (var rule in replaceRules)
|
||||
{
|
||||
rname = rname.Replace(rule.Key, rule.Value);
|
||||
fname = fname.Replace(rule.Key, rule.Value);
|
||||
}
|
||||
|
||||
File.Copy(file, path + "\\" + rname, true);
|
||||
if (!File.Exists(path + "\\" + rname))
|
||||
File.Copy(file, path + "\\" + fname, true);
|
||||
if (!File.Exists(path + "\\" + fname))
|
||||
{
|
||||
File.Copy(file, path + "\\" + rname, true);
|
||||
File.Copy(file, path + "\\" + fname, true);
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user