fs-automation

command module
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 10, 2022 License: MIT Imports: 6 Imported by: 0

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)

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL