- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
foreach (DirectoryInfo dir in dirs.GetDirectories())
{
stream.Write(new byte[] { (byte)NetworkMessage.MakeDir }, 0, 1);//crea\te folder{16}
stream.Read(new byte[1],0, 1);
stream.Write(BitConverter.GetBytes(Encoding.UTF8.GetBytes(SubFolder.Replace('\\', '/') + dir.Name.Replace('\\', '/')).Length),0, 4);
stream.Write(Encoding.UTF8.GetBytes(SubFolder.Replace('\\', '/') + dir.Name.Replace('\\', '/')),0, Encoding.UTF8.GetBytes(SubFolder.Replace('\\', '/') + dir.Name.Replace('\\', '/')).Length);
//send folder name
stream.Read(new byte[1], 0, 1);//Ok
}
Комментарии (0) RSS
Добавить комментарий