MCPcopy Create free account
hub / github.com/pgadmin-org/pgadmin4 / replace_path_for_win

Function replace_path_for_win

web/pgadmin/misc/bgprocess/processes.py:122–129  ·  view source on GitHub ↗
(last_dir=None)

Source from the content-addressed store, hash-verified

120
121
122def replace_path_for_win(last_dir=None):
123 if IS_WIN:
124 if '\\' in last_dir and len(last_dir) == 1:
125 last_dir = last_dir.replace('\\', '\\\\')
126 else:
127 last_dir = last_dir.replace('\\', '/')
128
129 return last_dir
130
131
132class BatchProcess:

Callers 1

current_storage_dirMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected