We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 969f589 commit e7a0e61Copy full SHA for e7a0e61
src/rp2_common/pico_lwip/tools/makefsdata.py
@@ -23,9 +23,10 @@ def process_file(input_dir, file):
23
if content_type is None:
24
content_type = "application/octet-stream"
25
26
- # file name
27
- data = f"/{file.relative_to(input_dir)}\x00"
28
- comment = f"\"/{file.relative_to(input_dir)}\" ({len(data)} chars)"
+ # file name with posix directory separators
+ file_path_posix = file.relative_to(input_dir).as_posix()
+ data = f"/{file_path_posix}\x00"
29
+ comment = f"\"/{file_path_posix}\" ({len(data)} chars)"
30
while(len(data) % PAYLOAD_ALIGNMENT != 0):
31
data += "\x00"
32
results.append({'data': bytes(data, "utf-8"), 'comment': comment});
0 commit comments