Skip to content

Commit 32e2bfe

Browse files
committed
minor fix in the docs
1 parent 4e28929 commit 32e2bfe

File tree

4 files changed

+3
-9
lines changed

4 files changed

+3
-9
lines changed

bitdust/interface/api.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -2852,10 +2852,10 @@ def file_download_start(remote_path, destination_path=None, wait_result=False, p
28522852
WARNING! Your existing local data in `destination_path` will be overwritten!
28532853
28542854
###### HTTP
2855-
curl -X POST 'localhost:8180/file/download/start/v1' -d '{"remote_path": "[email protected]:movies/back_to_the_future.mp4", "local_path": "/tmp/films/"}'
2855+
curl -X POST 'localhost:8180/file/download/start/v1' -d '{"remote_path": "[email protected]:movies/back_to_the_future.mp4", "destination_path": "/tmp/films/"}'
28562856
28572857
###### WebSocket
2858-
websocket.send('{"command": "api_call", "method": "file_download_start", "kwargs": {"remote_path": "[email protected]:movies/back_to_the_future.mp4", "local_path": "/tmp/films/"} }');
2858+
websocket.send('{"command": "api_call", "method": "file_download_start", "kwargs": {"remote_path": "[email protected]:movies/back_to_the_future.mp4", "destination_path": "/tmp/films/"} }');
28592859
"""
28602860
if not driver.is_on('service_restores'):
28612861
return ERROR('service_restores() is not started')
@@ -2864,7 +2864,6 @@ def file_download_start(remote_path, destination_path=None, wait_result=False, p
28642864
from bitdust.storage import backup_fs
28652865
from bitdust.storage import backup_control
28662866
from bitdust.storage import restore_monitor
2867-
# from bitdust.main import control
28682867
from bitdust.system import bpio
28692868
from bitdust.lib import packetid
28702869
from bitdust.main import settings

bitdust/main/bpmain.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,7 @@ def show():
6868
"""
6969
Just calls ``p2p.web.control.show()`` to open the GUI.
7070
"""
71-
# from bitdust.main import control
72-
# TODO: raise up electron window?
71+
# TODO: to be implemented
7372
return 0
7473

7574

bitdust/services/service_backups.py

-3
Original file line numberDiff line numberDiff line change
@@ -54,15 +54,12 @@ def start(self):
5454
from bitdust.storage import backup_matrix
5555
from bitdust.storage import backup_monitor
5656
from bitdust.main.config import conf
57-
# from bitdust.main import control
5857
from bitdust.main import events
5958
from bitdust.main import listeners
6059
from bitdust.transport import callback
6160
from bitdust.p2p import p2p_connector
6261
backup_control.init()
6362
backup_matrix.init()
64-
# backup_matrix.SetBackupStatusNotifyCallback(control.on_backup_stats)
65-
# backup_matrix.SetLocalFilesNotifyCallback(control.on_read_local_files)
6663
backup_monitor.A('init')
6764
backup_monitor.A('restart')
6865
conf().addConfigNotifier('services/backups/keep-local-copies-enabled', self._on_keep_local_copies_modified)

bitdust/transport/gateway.py

-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@
106106
from bitdust.system import tmpfile
107107

108108
from bitdust.main import settings
109-
# from bitdust.main import control
110109
from bitdust.main import config
111110
from bitdust.main import events
112111

0 commit comments

Comments
 (0)