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: