function()

in src/file-finder.ts [68:94]


            function (
              soFar: FilesAndDirectories,
              str: string,
            ): FilesAndDirectories {
              const fullPath: File.AbsoluteFilePath =
                PathUtils.getAbsolutePathFromDirectoryAndRelativePath(
                  directoryOrFileToScan,
                  str,
                );
              const indexOfPeriod = str.indexOf('.');
              if (indexOfPeriod === -1) {
                soFar.foundPotentialDirectories.push(fullPath);
                return soFar;
              } else if (indexOfPeriod === 0) {
                return soFar;
              } else {
                if (
                  str.indexOf(
                    fileExtensionPath,
                    str.length - fileExtensionPath.length,
                  ) !== -1
                ) {
                  soFar.foundFilePaths.push(fullPath);
                }
                return soFar;
              }
            },