serverdirectorycache.cs

来自「ftp上传的c#程序. ftp上传的c#程序.」· CS 代码 · 共 31 行

CS
31
字号
namespace FTP.Model.DataStructures.DirectoryCache {
  using System;
  using System.Collections;
  using System.Windows.Forms;
  
  public class ServerDirectoryCache {
    private const string  CRLF = "\r\n";
    private Hashtable CachedServerFileData;  // This HashMap contains data about each folder
    public ServerFileData[] currentDirectoryFileData;

    private InterpretUnixResponse serverReponseInterpreter; // To Do: make an abstract class so we can create other intpreters

    public ServerDirectoryCache() {
        currentDirectoryFileData  = new ServerFileData[0];
        CachedServerFileData      = new Hashtable();
        serverReponseInterpreter  = new InterpretUnixResponse();
    }
    
    // Called from the model when a LIST command has been executed
    public void CacheServerLIST(string pLISTResponse) {

      // Make a pointer to the new data
      currentDirectoryFileData  =  serverReponseInterpreter.processLISTResponse(pLISTResponse);
      //      CachedServerFileData.Add(pServerDirectory, fileData);
        
    }

  }
  
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?