Skip to content

Commit

Permalink
Code style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
carlspring authored Oct 4, 2021
1 parent c00de9d commit 0aae7e8
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -853,10 +853,14 @@ public void copy(Path source,
if (exists(s3Target))
{
if (!actualOptions.contains(StandardCopyOption.REPLACE_EXISTING))
{
throw new FileAlreadyExistsException(format("target already exists: %s", target));
}

if (Files.isDirectory(source))
{
delete(s3Target);
}
}

if (Files.isDirectory(source))
Expand Down Expand Up @@ -896,6 +900,7 @@ private String encodeUrl(final String bucketNameOrigin,
{
throw new UnsupportedEncodingException("URL could not be encoded: " + e.getMessage());
}

return encodedUrl;
}

Expand Down

0 comments on commit 0aae7e8

Please sign in to comment.