https://github.com/runnerty/executor-filesystem
Runnerty module: File system executor
https://github.com/runnerty/executor-filesystem
executor filesystem-executor mkdir
Last synced: 5 months ago
JSON representation
Runnerty module: File system executor
- Host: GitHub
- URL: https://github.com/runnerty/executor-filesystem
- Owner: runnerty
- License: mit
- Created: 2017-07-10T11:39:38.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2024-10-01T07:21:01.000Z (over 1 year ago)
- Last Synced: 2025-09-17T23:59:14.070Z (9 months ago)
- Topics: executor, filesystem-executor, mkdir
- Language: JavaScript
- Size: 102 KB
- Stars: 0
- Watchers: 5
- Forks: 1
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Smart Processes Management
[![NPM version][npm-image]][npm-url] [![Downloads][downloads-image]][npm-url]
# Filesystem executor for [Runnerty]:
### Installation:
Through NPM
```bash
npm i @runnerty/executor-filesystem
```
You can also add modules to your project with [runnerty-cli]
```bash
npx runnerty-cli add @runnerty/executor-filesystem
```
This command installs the module in your project, adds example configuration in your `config.json` and creates an example plan of use.
If you have installed [runnerty-cli] globally you can include the module with this command:
```bash
rty add @runnerty/executor-filesystem
```
### Configuration sample:
Add in [config.json]:
```json
{
"id": "filesystem_default",
"type": "@runnerty-executor-filesystem"
}
```
### Plan sample:
Add in [plan.json]:
```json
{
"id": "filesystem_default",
"path": "/etc/runnerty/*.log",
"operation": "stat"
}
```
```json
{
"id": "filesystem_default",
"path": ["/etc/runnerty/*.log", "/etc/runnerty/*.zip"],
"operation": "ls",
"options": {
"orderBy": { "attribute": ["size", "file"], "order": "desc" }
}
}
```
#### Operations:
| Operation | Description | Output |
| --------- | ----------- | ------ |
| stat | | |
| ls | | |
| mkdir | | |
#### Results output
- `PROCESS_EXEC_MSG_OUTPUT`: Array files/directories stats.
- `PROCESS_EXEC_ERR_OUTPUT`: Error output message.
[runnerty]: http://www.runnerty.io
[downloads-image]: https://img.shields.io/npm/dm/@runnerty/executor-filesystem.svg
[npm-url]: https://www.npmjs.com/package/@runnerty/executor-filesystem
[npm-image]: https://img.shields.io/npm/v/@runnerty/executor-filesystem.svg
[david-badge]: https://david-dm.org/runnerty/executor-filesystem.svg
[david-badge-url]: https://david-dm.org/runnerty/executor-filesystem
[config.json]: http://docs.runnerty.io/config/
[plan.json]: http://docs.runnerty.io/plan/
[runnerty-cli]: https://www.npmjs.com/package/runnerty-cli