Skip to content

Commit

Permalink
pcorlessGH-46 Fixes folder creation on save
Browse files Browse the repository at this point in the history
  • Loading branch information
gtache committed Aug 27, 2020
1 parent 4ab7d9d commit 5e212b2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ public void save(final InputStream inputStream) throws IOException {
startIdx--;
}
if (startIdx < folderUrls.size()) {
for (int idx = startIdx; idx <= folderUrls.size(); ++idx) {
for (int idx = startIdx + 1; idx <= folderUrls.size(); ++idx) {
final String toCreate = startUrl + String.join("/", folderUrls.subList(0, idx));
sardine.createDirectory(toCreate);
}
Expand Down

0 comments on commit 5e212b2

Please sign in to comment.