MockForge FTP
FTP protocol support for MockForge.
This crate provides FTP-specific functionality for creating mock FTP servers, including virtual file systems, fixture-driven responses, and file transfer simulation.
Overview
MockForge FTP enables you to:
- Serve FTP servers: Mock FTP protocol for file transfer testing
- Virtual file system: In-memory and template-based file generation
- Fixture management: Pre-configured file structures and content
- Upload handling: Configurable upload validation and storage
- Protocol compliance: Standard FTP commands and responses
Quick Start
Basic FTP Server
use FtpServer;
use FtpConfig;
async
Key Features
Virtual File System
- In-memory file storage with metadata
- Template-based content generation
- Pattern-based file creation (random, zeros, incremental)
Fixture System
- YAML-based fixture definitions
- Upload rules and validation
- Multiple storage options (memory, file, discard)
FTP Protocol Support
- Standard FTP commands (LIST, RETR, STOR, DELE, etc.)
- Passive and active mode support
- Authentication and anonymous access
Related Crates
mockforge-core: Core mocking functionalitylibunftp: Underlying FTP server library