notify-fs

module
v0.0.0-...-695189b Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2022 License: GPL-3.0

README

notify-fs

AUR

Connecting filesystem events with instant messaging.

Behaviour:

When a file is created in the watched directory, it is automatically sent to the configured chat.

Technology:

This service uses the fsnotify library. This library uses the system call SYS_INOTIFY_INIT1 (294) on Linux systems and ReadDirectoryChangesW on Windows systems.

Configuration:

This service is configured via environment variables.

Variable Name Description
TARGET_DIRECTORY Directory to watch
TELEGRAM_TOKEN Telegram bot token
TARGET_CHAT_ID Telegram target chat id
ONLY_IMAGES Send only images

Run:

You can compile the binary.

Compile:
  • Requirements:

    • A version of Docker with BuildKit support.
    • GNU make utility.
  • Procedure:

    • Run: make.
    • Check the correct creation of dist directory.

Directories

Path Synopsis
cmd
notify-fs command
pkg

Jump to

Keyboard shortcuts

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