Skip to content

Web Workflow uploads file to wrong folder if default folder has been changed using os.chdir() #9053

@RetiredWizard

Description

@RetiredWizard

CircuitPython version

Adafruit CircuitPython 9.0.0-rc.0-4-g04843e8597 on 2024-03-11; M5 Stack Cardputer with ESP32S3
Adafruit CircuitPython 9.0.0-rc.1 on 2024-03-14; Adafruit HUZZAH32 Breakout with ESP32

Code/REPL

import os
os.chdir('/')
if not 'test' in os.listdir():
    os.mkdir('test')

os.chdir('/test')
print('Directory set to test folder:',os.getcwd())

Behavior

Using Web Workflow to upload a file to the root folder when the indicated code.py has been executed causes the file to uploaded to the /test folder rather than the root folder.

Description

No response

Additional information

No response

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions