Skip to content

Commit

Permalink
I'm not sure what FileUtil.stringToPath() is doing?
Browse files Browse the repository at this point in the history
  • Loading branch information
labkey-matthewb committed Nov 15, 2024
1 parent 7c4c78c commit 1602c2b
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1260,8 +1260,7 @@ public ApiResponse execute(CustomPropertiesForm form, BindException errors)
Map<FieldKey, Object> data = result.getFieldKeyRowMap();
Map<String, Object> row = new HashMap<>();

java.nio.file.Path dataFilePath = FileUtil.stringToPath(getContainer(), (String) data.get(dataFileURLFieldKey));
row.put("dataFileUrl", null != dataFilePath ? FileUtil.pathToString(dataFilePath) : null);
row.put("dataFileUrl", data.get(dataFileURLFieldKey));
row.put("rowId", data.get(rowIdFieldKey));
row.put("name", data.get(nameFieldKey));

Expand Down

0 comments on commit 1602c2b

Please sign in to comment.