Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

minor fix in the docs #812

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions bitdust/interface/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -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": "[email protected]:movies/back_to_the_future.mp4", "local_path": "/tmp/films/"}'
curl -X POST 'localhost:8180/file/download/start/v1' -d '{"remote_path": "[email protected]:movies/back_to_the_future.mp4", "destination_path": "/tmp/films/"}'

###### WebSocket
websocket.send('{"command": "api_call", "method": "file_download_start", "kwargs": {"remote_path": "[email protected]:movies/back_to_the_future.mp4", "local_path": "/tmp/films/"} }');
websocket.send('{"command": "api_call", "method": "file_download_start", "kwargs": {"remote_path": "[email protected]:movies/back_to_the_future.mp4", "destination_path": "/tmp/films/"} }');
"""
if not driver.is_on('service_restores'):
return ERROR('service_restores() is not started')
Expand All @@ -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
Expand Down
3 changes: 1 addition & 2 deletions bitdust/main/bpmain.py
Original file line number Diff line number Diff line change
Expand Up @@ -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


Expand Down
3 changes: 0 additions & 3 deletions bitdust/services/service_backups.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion bitdust/transport/gateway.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down