Skip to content
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
@karrots

Description

@karrots

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions