MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / handle_path_with_space

Method handle_path_with_space

client/tool/util/pythontool.py:212–218  ·  view source on GitHub ↗

处理文件路径中包含空格的情况,同时要适配windows下cmd的格式,""(双引号) :param path: :return:

(path)

Source from the content-addressed store, hash-verified

210
211 @staticmethod
212 def handle_path_with_space(path):
213 """
214 处理文件路径中包含空格的情况,同时要适配windows下cmd的格式,""(双引号)
215 :param path:
216 :return:
217 """
218 return "\""+path+"\""

Callers 1

get_scan_filesMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected