Discover Packages
github.com/incu6us/fs-automation
command
module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jun 10, 2022
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
README
¶
fs-automation
Application to execute a command on any event on file/directory. For example, on creation of file in custom directory
we need to change their permissions:
---
rules:
- operation: CREATE
path: /tmp
cmd: chmod 755 {{fullpath}}
List of vars for cmd
section to config:
path - will use Path variable as is;
fullpath - will use full path. Path option is as a prefix;
operation - will use a performed operation (ANY, CREATE, WRITE, REMOVE, RENAME, CHMOD);
action - real action which was done(in case of ANY it will show one of CREATE, WRITE, REMOVE, RENAME, CHMOD)
Expand ▾
Collapse ▴
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
Click to show internal directories.
Click to hide internal directories.