# TransferType

TransferType Enum

Transfer type for a TransferItem

Fields

TransferFile | 0 | Transfer a file
TransferEmptyDir | 1 | Transfer a empty directory, do not transfer it's content
TransferDir | 2 | Transfer the entire directory

Examples

// Create a demo server Server demo_server = new Server { Host = "demo.wftpserver.com", Username = "demo", Password = "demo" }; TransferItem transferItem = new TransferItem //Transfer the "download" directory from demo server to local computer's "Documents" directory. { SourceServer = demo_server, TargetServer = Server.Local, SourceName = "/download", TargetName = "~Documents/download", TransferType = TransferType.TransferDir, // This is a "Transfer Dir" task }; Transfer.Add(transferItem);

See Also

- TransferItem
- Transfer
- Server