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
Using VS Code, my files are in a src folder
My ESP32 board wants these files in the root folder.
I cannot figure out how to do it without writing a loop. The recursive put is supposed to help but it doesn't.
What I've tried
cd [parent folder of 'src']
ampy put src /
Result: copies src folder to root. As expected, but not what I need.
so it would seem I need to be inside the src folder to avoid creating the src folder on the device
cd src
ampy put
Result: Syntax error. Ok fair enough, let's be more specific...
ampy put *.* /
Result: sytax error. Ok, so it doesn't know about wildcards
ampy put . /
Result: Does nothing. This is puzzling
ampy put .
Result: It creates the src folder on the device! WHAT?! I'm inside the src folder, it shouldn't even know or care about the containing folder. What if my files were in the root of my local filesystem? Would it try to create a folder called C: or mnt/c? No, of course not.
So... how can I put the contents of a folder in the root folder of my device?
Any help appreciated.
The text was updated successfully, but these errors were encountered:
@GregWoods you probably figured this out yourself or gave up quite a while ago but I just had this problem myself and came across your issue. I found the solution - ampy put . / which will write the contents of the present working directory to the root of the device like you wanted.
Using VS Code, my files are in a
src
folderMy ESP32 board wants these files in the root folder.
I cannot figure out how to do it without writing a loop. The recursive put is supposed to help but it doesn't.
What I've tried
Result: copies src folder to root. As expected, but not what I need.
so it would seem I need to be inside the src folder to avoid creating the src folder on the device
Result: Syntax error. Ok fair enough, let's be more specific...
Result: sytax error. Ok, so it doesn't know about wildcards
Result: Does nothing. This is puzzling
Result: It creates the
src
folder on the device! WHAT?! I'm inside the src folder, it shouldn't even know or care about the containing folder. What if my files were in the root of my local filesystem? Would it try to create a folder calledC:
ormnt/c
? No, of course not.So... how can I put the contents of a folder in the root folder of my device?
Any help appreciated.
The text was updated successfully, but these errors were encountered: