Lines Matching refs:file_path
182 def rm_send_file(file_path, head, need_del):
184 run_command("{}{}{}{}".format("shell \"rm -rf ", file_path, "\"", head))
202 def get_win_file_type(file_path):
203 ret = run_command_stdout("{}{}{}".format("if exist ", file_path, " echo yes"), '')
205 res = run_command_stdout("{}{}{}".format("dir/ad ", file_path, " >nul 2>nul && echo dir || echo file"), '')
209 def rm_recv_file(file_path, need_del):
211 res = get_win_file_type(file_path)
213 run_command("{}{}".format("rmdir /s/q ", file_path), "")
215 run_command("{}{}".format("del ", file_path), "")
366 def get_win_md5(file_path):
368 send_md5 = run_command_stdout("{}{}{}".format("certutil -hashfile ", os.path.abspath(file_path), " MD5"),
376 def get_md5(file_path, head=NORMAL_HEAD):
377 md5 = run_command_stdout("{}{}{}".format("shell \"md5sum ", file_path, "\""), head)