Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mamuesp/mos-FS.Put-script
Encodes a file (or files in a directory) with base64 and transfers it via "mos call FS.Put" to a Mongoose-OS driven device.
https://github.com/mamuesp/mos-FS.Put-script
Last synced: 3 months ago
JSON representation
Encodes a file (or files in a directory) with base64 and transfers it via "mos call FS.Put" to a Mongoose-OS driven device.
- Host: GitHub
- URL: https://github.com/mamuesp/mos-FS.Put-script
- Owner: mamuesp
- License: mit
- Created: 2018-05-07T11:47:44.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2019-07-27T11:13:21.000Z (over 5 years ago)
- Last Synced: 2024-07-31T21:53:05.871Z (6 months ago)
- Language: Shell
- Homepage:
- Size: 8.79 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-mongoose-os - mos-FS.Put-script - Reads a single file, encodes it in base64 and transfers it via "mos call FS.Put" (RPC) (Awesome Mongoose OS [![Awesome](https://awesome.re/badge.svg)](https://awesome.re) / Community Tutorials)
README
# mos-FS.Put-script
Reads a single file (files of an directory, one by one), encodes it with base64 and transfers it via "mos call FS.Put"
(RPC) to the Mongoose-OS driven device The lines are transferred one by one,
so there is no problem with any chunk size limits. If a directory name is given as
source, it will transfer all allowed files found in the driectory.Allowed file types: (MIME)
- application/x-gzip
- text/html
- text/plain
- text/css
- text/javascript
- text/json
- application/octet-stream
- image/svg## Usage: mosPutFile.sh --src=\ --dest=\ [--p=] [--verbose]
- "src" might be a file or a directory
- "dest" has to be a single diretory name e.g."/mnt"
Use at your own risk! (see license disclaimer). Publisehd under the MIT license.