Skip to content
Snippets Groups Projects
Commit 293e1792 authored by Jörg Sachse's avatar Jörg Sachse
Browse files

fix: process files only when they are older than one minute

parent f2125e07
No related branches found
No related tags found
No related merge requests found
......@@ -522,9 +522,9 @@ scan_file() {
scan_dir() {
check_argument_count $# 1
check_argument_notempty "$1"
find "$1" -type f -print0| while IFS= read -r -d '' filename; do
scan_file "$filename"
done
find "$1" -type f -cmin +1 -mmin +1 -print0 | while IFS= read -r -d '' filename; do
scan_file "$filename"
done
}
#### MAIN
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment