This repository was archived by the owner on Jan 26, 2025. It is now read-only.
This repository was archived by the owner on Jan 26, 2025. It is now read-only.
Absolute paths used as file names in upload #24
Open
Description
When passing a file to upload as an absolute path instead of just a filename the filename on the ESP module is the full path on local host.
$ nodemcu-uploader upload --compile /path/to/lua/file/mylua.lua
Remove /path/to/lua/file/mylua.lc
file.remove("/path/to/lua/file/mylua.lc")
stdin:1: filename too long
>
Transfering scwifi.lua as /path/to/lua/file/mylua.lua
Error waiting for esp "recv()
stdin:1: attempt to call global 'recv' (a nil value)
> "
Compile /path/to/lua/file/mylua.lua
node.compile("/path/to/lua/file/mylua.lua")
stdin:1: filename too long
>
Remove /path/to/lua/file/mylua.lua
file.remove("/path/to/lua/file/mylua.lua")
stdin:1: filename too long