Added test and test description to check_folder_for_extension function.

This commit is contained in:
Stephan
2023-11-20 23:15:51 +01:00
parent 8a39d3d127
commit ac708eb438
15 changed files with 13 additions and 2 deletions

View File

@@ -37,8 +37,8 @@ __check_folder() {
__test() {
MYFOLDER="./test";
__check_folder $MYFOLDER "*.jpg *.JPG *.mp4 *.MP4"
MYFOLDER="./cffe_test";
__check_folder $MYFOLDER "*.jpg *.JPG" # space separated list for multiple extensions!
FILE_COUNT=$?
echo "Found $FILE_COUNT files in folder $MYFOLDER, length of files array is ${#FILESNPATHS[*]}.";
for ((FILE_C=0;FILE_C<${#FILESNPATHS[*]};FILE_C++)); do