using ExtendUI.FTPManager;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace FTPop
{
public interface IFTP
{
///
/// 打开FTP
///
///
int Open(FTPInfo ftpinfo);
///
/// 关闭FTP
///
///
int Close();
///
/// 显示文件夹列表
///
///
///
List ListDirectory(string CurFolder);
///
/// 上传
///
///
///
///
int Upload(string localPath, string remotePath);
///
/// 下载
///
///
///
///
int Download(string remotePath, string localPath);
string ErrorMsg { get; set; }
///
/// 删除文件
///
///
///
int RemoveFiles(string remotePath);
///
/// 创建文件夹
///
///
///
bool CreateDir(string remotePath);
///
/// 移动文件
///
///
///
int MoveFile(string fromPath,string toPath);
///
/// 文件是否存在
///
///
///
bool FileExists(string remotePath);
///
/// 文件大小
///
///
///
Int64 FileSize(string remotePath);
///
/// 文件最后修改时间
///
///
///
DateTime FileLastWriteTime(string remotePath);
///
/// 文件信息
///
///
///
ExtendUI.FTPManager.RemoteFileInfo GetFileInfo(string remotePath);
///
/// 文件传输事件
///
event FileTransferProgressEventHandler FileTransferProgress;
///
/// 当前ID
///
int Id { get; set; }
///
/// 当前Tag
///
object Tag { get; set; }
///
/// 最后一次错误
///
string LastError { get; set; }
}
}