Skip to content

Commit

Permalink
Delete OWA if exists
Browse files Browse the repository at this point in the history
  • Loading branch information
rkorytkowski committed Dec 15, 2017
1 parent 7bfb332 commit 2a966df
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ public File downloadFile(BintrayFile file, File destDirectory, String filename){
}
File destFile = new File(destDirectory, filename);
if(destFile.exists()){
throw new RuntimeException("Cannot overwrite file: "+file.getPath());
destFile.delete();
}
String url = String.format("https://dl.bintray.com/%s/%s/%s", file.getOwner(), file.getRepository(), file.getPath());
URL fileUrl = new URL(url);
Expand Down

0 comments on commit 2a966df

Please sign in to comment.