diff --git a/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java b/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java index bfbfe342..bc878dc5 100644 --- a/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java +++ b/qaf-tools/src/main/java/com/qmetry/qaf/automation/tools/MultiPropertiesEditorHelper.java @@ -7,7 +7,6 @@ import java.io.File; import java.io.IOException; import java.nio.charset.StandardCharsets; -import java.nio.file.Path; import java.util.Collection; import java.util.HashMap; import java.util.LinkedHashMap; @@ -67,9 +66,9 @@ public static Collection> getContent(String filePath) { } public static void saveContent(Collection> data, String path) { - Path filePath = Path.of(path); - String name = filePath.getFileName().toString(); - String parent = filePath.getParent().toString(); + File file = new File(path); + String name = file.getName(); + String parent = file.getParent(); saveContent(data, name, parent); }