Put a file or folder and its contents on the board.
public System.Threading.Tasks.Task Upload(string local, string? remote=null);
local System.String
local
Local file or folder path.
remote System.String
remote
Remote file or folder path.
System.Threading.Tasks.Task
To upload a main.py from the current directory to the board's root:
await Upload("C:/main.py")
To upload a board_boot.py from a ./foo subdirectory and save it as boot.py in the board's root:
await Upload("./foo/board_boot.py", "boot.py")
To upload a local folder adafruit_library and all of its child files/folders as an item under the board's root:
await Upload("adafruit_library")
To put a local folder adafruit_library on the board under the path /lib/adafruit_library on the board:
await Upload("adafruit_library", "/lib/adafruit_library")
There was an error while loading. Please reload this page.