MCPcopy
hub / github.com/InstaPy/InstaPy / update_workspace

Function update_workspace

instapy/file_manager.py:94–99  ·  view source on GitHub ↗

Update the workspace constant with its latest path

(latest_path)

Source from the content-addressed store, hash-verified

92
93
94def update_workspace(latest_path):
95 """Update the workspace constant with its latest path"""
96
97 latest_path = slashen(latest_path, "native")
98 validate_path(latest_path)
99 WORKSPACE.update(path=latest_path)
100
101
102def move_workspace(old_path, new_path):

Callers 2

get_workspaceFunction · 0.85
set_workspaceFunction · 0.85

Calls 2

slashenFunction · 0.85
validate_pathFunction · 0.85

Tested by

no test coverage detected