MCPcopy Index your code
hub / github.com/InstaPy/InstaPy / remove_last_slash

Function remove_last_slash

instapy/file_manager.py:155–161  ·  view source on GitHub ↗

Remove the last slash in the given path [if any]

(path)

Source from the content-addressed store, hash-verified

153
154
155def remove_last_slash(path):
156 """Remove the last slash in the given path [if any]"""
157
158 if path.endswith("/"):
159 path = path[:-1]
160
161 return path
162
163
164def verify_workspace_name(path):

Callers 2

get_home_pathFunction · 0.85
verify_workspace_nameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected