Skip to content

Commit

Permalink
Ignore hidden files/folders in watch directory.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlesage committed Jul 17, 2017
1 parent 3a422b9 commit cf7b932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions rootfs/etc/services.d/autovideoconverter/run
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ log() {
}

WATCHDIR_HASH_calculate() {
find /watch -follow -type f -printf '%T@:%s:%p\n' | md5sum | cut -d' ' -f1
find /watch -follow -type f -not -path '*/\.*' -printf '%T@:%s:%p\n' | md5sum | cut -d' ' -f1
}

WATCHDIR_HASH_isset() {
Expand Down Expand Up @@ -139,7 +139,7 @@ while true; do
WATCHDIR_HASH_update
log "Processing watch folder..."
FILELIST="$(mktemp)"
find /watch -follow -type f > "$FILELIST"
find /watch -follow -type f -not -path '*/\.*' > "$FILELIST"
while read -u 3 FILE
do
process_file "$FILE"
Expand Down

0 comments on commit cf7b932

Please sign in to comment.