From 5bfc5435cd80fa143486b8b23d5b9626ca84ff30 Mon Sep 17 00:00:00 2001 From: Andros Fenollosa Date: Tue, 18 Apr 2023 15:32:42 +0200 Subject: [PATCH] Update event --- README.md | 3 --- dynamic-folders-video-optimizer.sh | 2 +- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/README.md b/README.md index 942f29a..415187c 100644 --- a/README.md +++ b/README.md @@ -6,9 +6,6 @@ Collection of Bash scripts that execute functionalities in folders. 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 - `inotify-tools` diff --git a/dynamic-folders-video-optimizer.sh b/dynamic-folders-video-optimizer.sh index 7d232a2..ba61260 100755 --- a/dynamic-folders-video-optimizer.sh +++ b/dynamic-folders-video-optimizer.sh @@ -52,7 +52,7 @@ send-notification() { start() { # 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 # Gets the file extension extension="${filename##*.}"