You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
importosos.chdir('/')
ifnot'test'inos.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
The text was updated successfully, but these errors were encountered:
I have been having intermittent issues moving the web workflow to subdirectories but hadn't been able to reliably reproduce the issue. I'm now thinking it's related to this issue and the web workflow file listing is also using the current folder of the device to look for selected target folders when attempting to change to a subfolder. Essentially the Web Worfklow file listing and the devices current folder are at different locations.
#9224 (merged after this issue was reported) forces a chdir to top level when the VM is restarted. So that fixes it being "sticky", if that's the problem. But if you are using the web workflow while the program is running and has done an os.chdir(), I guess we need to fix that
CircuitPython version
Code/REPL
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
The text was updated successfully, but these errors were encountered: