Beispiel #1
0
        private void SendFolders(object obj)
        {
            try
            {
                DirectoryInfo Folders = new DirectoryInfo(DirLocation);
                if (!Folders.Exists)
                    return;

                foreach (DirectoryInfo Folder in Folders.GetDirectories())
                {
                    FileMgrDirInfo info = new FileMgrDirInfo();
                    info.Name = Folder.Name;
                    info.SubDir = DirLocation;
                    Client.SendPacket(new S_FileMgrGetFolders(Client, info));
                }
            }
            catch { }
        }
 public S_FileMgrGetFolders(ClientConnect client, FileMgrDirInfo info)
     : base(client)
 {
     this.info = info;
 }