diff --git a/bitdust/interface/api.py b/bitdust/interface/api.py index 3849e8dbc..e6d1c9404 100644 --- a/bitdust/interface/api.py +++ b/bitdust/interface/api.py @@ -2852,10 +2852,10 @@ def file_download_start(remote_path, destination_path=None, wait_result=False, p WARNING! Your existing local data in `destination_path` will be overwritten! ###### HTTP - curl -X POST 'localhost:8180/file/download/start/v1' -d '{"remote_path": "abcd1234$alice@server-a.com:movies/back_to_the_future.mp4", "local_path": "/tmp/films/"}' + curl -X POST 'localhost:8180/file/download/start/v1' -d '{"remote_path": "abcd1234$alice@server-a.com:movies/back_to_the_future.mp4", "destination_path": "/tmp/films/"}' ###### WebSocket - websocket.send('{"command": "api_call", "method": "file_download_start", "kwargs": {"remote_path": "abcd1234$alice@server-a.com:movies/back_to_the_future.mp4", "local_path": "/tmp/films/"} }'); + websocket.send('{"command": "api_call", "method": "file_download_start", "kwargs": {"remote_path": "abcd1234$alice@server-a.com:movies/back_to_the_future.mp4", "destination_path": "/tmp/films/"} }'); """ if not driver.is_on('service_restores'): return ERROR('service_restores() is not started') @@ -2864,7 +2864,6 @@ def file_download_start(remote_path, destination_path=None, wait_result=False, p from bitdust.storage import backup_fs from bitdust.storage import backup_control from bitdust.storage import restore_monitor - # from bitdust.main import control from bitdust.system import bpio from bitdust.lib import packetid from bitdust.main import settings diff --git a/bitdust/main/bpmain.py b/bitdust/main/bpmain.py index 5d0d8f4fe..b3d891260 100644 --- a/bitdust/main/bpmain.py +++ b/bitdust/main/bpmain.py @@ -68,8 +68,7 @@ def show(): """ Just calls ``p2p.web.control.show()`` to open the GUI. """ - # from bitdust.main import control - # TODO: raise up electron window? + # TODO: to be implemented return 0 diff --git a/bitdust/services/service_backups.py b/bitdust/services/service_backups.py index eb5634c2a..398754d76 100644 --- a/bitdust/services/service_backups.py +++ b/bitdust/services/service_backups.py @@ -54,15 +54,12 @@ def start(self): from bitdust.storage import backup_matrix from bitdust.storage import backup_monitor from bitdust.main.config import conf - # from bitdust.main import control from bitdust.main import events from bitdust.main import listeners from bitdust.transport import callback from bitdust.p2p import p2p_connector backup_control.init() backup_matrix.init() - # backup_matrix.SetBackupStatusNotifyCallback(control.on_backup_stats) - # backup_matrix.SetLocalFilesNotifyCallback(control.on_read_local_files) backup_monitor.A('init') backup_monitor.A('restart') conf().addConfigNotifier('services/backups/keep-local-copies-enabled', self._on_keep_local_copies_modified) diff --git a/bitdust/transport/gateway.py b/bitdust/transport/gateway.py index 26aa6e6dd..5e4a173b9 100644 --- a/bitdust/transport/gateway.py +++ b/bitdust/transport/gateway.py @@ -106,7 +106,6 @@ from bitdust.system import tmpfile from bitdust.main import settings -# from bitdust.main import control from bitdust.main import config from bitdust.main import events