Scripts/SimpleFTP/SimpleFTP.ps1

16 lines
297 B
PowerShell
Raw Normal View History

2023-11-13 23:26:00 -04:00
# Create virtual environment
if (-not (Test-Path venv)) {
virtualenv venv
}
# Activate virtual environment
.\venv\Scripts\activate.ps1
# Install dependencies
pip install pyftpdlib
# Run FTP server
python -m pyftpdlib
2023-10-26 23:56:59 -03:00
# Not working for streaming video files
# twistd -n ftp -r .