- /* Creating new file + path string */
- snprintf(f_name, PATH_MAX +1, "%s/%s",dir, entry->d_name);
-
-
- /* Checking if the read entry, matches the provided file name. */
- if(strncasecmp(file, "r:", 2) == 0)
- {
- if(OS_Regex(file +2, entry->d_name))
- {
- if(rk_check_file(f_name, pattern))
- {
+ /* Check if the read entry matches the provided file name */
+ if (strncasecmp(file, "r:", 2) == 0) {
+ if (OS_Regex(file + 2, entry->d_name)) {
+ if (rk_check_file(f_name, pattern)) {