INNER CODE UNIT · Python

trash_path

Silverlan/pragma · build_scripts/build_third_party_libs.py:42

	trash_path = trash_parent / trash_name

	try:
		os.rename(p, trash_path)
		moved = True
	except Exception:
		# rename failed, try shutil.move
		try:
			shutil.move(str(p), str(trash_path))
			moved = True
		except Exception:
			moved = False

	target = trash_path if moved else p

	# attempt deletion
	for attempt in range(1, retries + 1):
		try:

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…