mirror of
https://github.com/tanrax/bash-folders.git
synced 2024-11-10 04:55:42 +01:00
Update event
This commit is contained in:
parent
feee4914d4
commit
5bfc5435cd
@ -6,9 +6,6 @@ Collection of Bash scripts that execute functionalities in folders.
|
|||||||
|
|
||||||
Folder that watches when new videos are added and optimizes them.
|
Folder that watches when new videos are added and optimizes them.
|
||||||
|
|
||||||
For security, it **only detects files that have been copied! Ignore moved files**.
|
|
||||||
|
|
||||||
|
|
||||||
### Requirements
|
### Requirements
|
||||||
|
|
||||||
- `inotify-tools`
|
- `inotify-tools`
|
||||||
|
@ -52,7 +52,7 @@ send-notification() {
|
|||||||
|
|
||||||
start() {
|
start() {
|
||||||
# Monitors the selected folder
|
# Monitors the selected folder
|
||||||
inotifywait -m -e create --format '%f' "$FOLDER_ORIGIN" |
|
inotifywait -m -e create,moved_to --format '%f' "$FOLDER_ORIGIN" |
|
||||||
while read -r filename; do
|
while read -r filename; do
|
||||||
# Gets the file extension
|
# Gets the file extension
|
||||||
extension="${filename##*.}"
|
extension="${filename##*.}"
|
||||||
|
Loading…
Reference in New Issue
Block a user