better parameter name
This commit is contained in:
parent
506b57d6ed
commit
998d8c69e9
|
@ -5,9 +5,9 @@ import java.io.IOException;
|
|||
import java.util.Objects;
|
||||
|
||||
public class FolderUtil {
|
||||
public static void handleFolder(String inputFolderName, FileAction fileAction, String suffix) throws IOException {
|
||||
public static void handleFolder(String inputFolderName, FileAction fileAction, String fileNameSuffix) throws IOException {
|
||||
File inputFolder = new File(inputFolderName);
|
||||
for (String simpleFileName : Objects.requireNonNull(inputFolder.list((dir, name) -> name.endsWith(suffix)))) {
|
||||
for (String simpleFileName : Objects.requireNonNull(inputFolder.list((dir, name) -> name.endsWith(fileNameSuffix)))) {
|
||||
System.out.println("Handling input file " + simpleFileName);
|
||||
String fullInputFile = inputFolderName + File.separator + simpleFileName;
|
||||
|
||||
|
|
Loading…
Reference in New Issue