Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion platformio/package/unpack.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ def extract_item(self, item, dest_dir, **kwargs):
self._afo.extract(item, dest_dir, **kwargs)
except FileNotFoundError as exc:
src_path = self.get_item_filename(item)
if IS_WINDOWS and (len(src_path) + len(dest_dir) > 260):
if IS_WINDOWS and (
len(os.path.join(os.path.abspath(dest_dir), src_path)) > 260
):
raise WindowsLongPathError(src_path, dest_dir) from exc
raise exc
self.after_extract(item, dest_dir)
Expand Down