Skip to content

Commit

Permalink
Load sb:draft secondary files contents
Browse files Browse the repository at this point in the history
  • Loading branch information
Milos Ljubinkovic committed Feb 12, 2018
1 parent 0d8970e commit 29be82c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -380,6 +380,10 @@ public static List<Map<String, Object>> getSecondaryFiles(SBJob job, HashAlgorit
Path pathToSec = Paths.get(secondaryFilePath);
if (Files.exists(pathToSec) || !onlyExisting) {
Map<String, Object> file = SBFileValueHelper.pathToRawFile(pathToSec, hashAlgorithm, Paths.get(SBFileValueHelper.getPath(fileValue)));
boolean loadContents = SBBindingHelper.loadContents(binding);
if (loadContents) {
SBFileValueHelper.setContents(file);
}
secondaryFileMaps.add(file);
}
} catch (IOException | URISyntaxException e) {
Expand Down

0 comments on commit 29be82c

Please sign in to comment.