mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 16:43:04 +00:00
Rename ISO before upload
svn path=/trunk/; revision=19532
This commit is contained in:
parent
edb771ae7d
commit
419247baed
1 changed files with 6 additions and 1 deletions
|
@ -185,6 +185,11 @@ namespace ReactOS.CustomRevisionAction
|
||||||
string branch,
|
string branch,
|
||||||
int revision)
|
int revision)
|
||||||
{
|
{
|
||||||
|
string distributionFilename = GetDistributionFilename(branch,
|
||||||
|
revision);
|
||||||
|
string destinationFilename = Path.Combine(Path.GetDirectoryName(sourceFilename),
|
||||||
|
distributionFilename);
|
||||||
|
File.Move(sourceFilename, distributionFilename);
|
||||||
string server;
|
string server;
|
||||||
string directory;
|
string directory;
|
||||||
SplitRemotePublishPath(publishPath, out server, out directory);
|
SplitRemotePublishPath(publishPath, out server, out directory);
|
||||||
|
@ -196,7 +201,7 @@ namespace ReactOS.CustomRevisionAction
|
||||||
if (!ftpClient.DirectoryExists(branch))
|
if (!ftpClient.DirectoryExists(branch))
|
||||||
ftpClient.MakeDir(branch);
|
ftpClient.MakeDir(branch);
|
||||||
ftpClient.ChangeDir(branch);
|
ftpClient.ChangeDir(branch);
|
||||||
ftpClient.Upload(sourceFilename);
|
ftpClient.Upload(destinationFilename);
|
||||||
ftpClient.Close();
|
ftpClient.Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue