From e93716b5f7e86a7c6b7daf49ac712229e117892c Mon Sep 17 00:00:00 2001 From: Jarian Cottingham Date: Mon, 2 Feb 2026 21:28:47 -0600 Subject: [PATCH] Fix FTP CLI command - correct method name and fix start/stop calls --- factsdb/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/factsdb/cli.py b/factsdb/cli.py index d37d069..45e43d9 100644 --- a/factsdb/cli.py +++ b/factsdb/cli.py @@ -90,10 +90,10 @@ def ftp(host: str, port: int): # Add current directory as allowed directory current_dir = os.path.abspath('.') - ftp_manager.add_allowed_directory(current_dir) + ftp_manager.add_onboarded_directory(current_dir) try: - ftp_manager.start_server() + ftp_manager.start() click.echo(f"FTP Server started on {host}:{port}") click.echo("Press Ctrl+C to stop") @@ -103,7 +103,7 @@ def ftp(host: str, port: int): import time time.sleep(1) except KeyboardInterrupt: - ftp_manager.stop_server() + ftp_manager.stop() click.echo("FTP Server stopped") except Exception as e: