Skip to content

Commit

Permalink
Fix 'No such file or directory' error when creating an empty fileset .
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 464496828
Change-Id: I554d609bffb00d817f0f9158bac1042739071d53
  • Loading branch information
coeuvre authored and Copybara-Service committed Aug 1, 2022
1 parent d1fd6ab commit a25ba11
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,10 @@ private void updateInputMtimeIfNeeded(ActionExecutionContext actionExecutionCont
linkPath.setLastModifiedTime(Path.NOW_SENTINEL_TIME);
} else {
// Should only happen if the Fileset included no links.
actionExecutionContext.getExecRoot().getRelative(getInputPath()).createDirectory();
actionExecutionContext
.getExecRoot()
.getRelative(getInputPath())
.createDirectoryAndParents();
}
} catch (IOException e) {
String message =
Expand Down

0 comments on commit a25ba11

Please sign in to comment.