We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc78327 commit 1af767dCopy full SHA for 1af767d
platform.py
@@ -142,6 +142,15 @@ def safe_copy_file(src: str, dst: str) -> bool:
142
return True
143
144
145
+@safe_file_operation
146
+def safe_copy_directory(src: str, dst: str) -> bool:
147
+ """Safely copy directories with error handling."""
148
+ os.makedirs(os.path.dirname(dst), exist_ok=True)
149
+ shutil.copytree(src, dst, dirs_exist_ok=True)
150
+ logger.debug(f"Directory copied: {src} -> {dst}")
151
+ return True
152
+
153
154
class Espressif32Platform(PlatformBase):
155
"""ESP32 platform implementation for PlatformIO with optimized toolchain management."""
156
0 commit comments