Skip to content

Commit

Permalink
fixed issue #10
Browse files Browse the repository at this point in the history
  • Loading branch information
roikku committed Apr 28, 2014
1 parent 4a4d16a commit b5a8108
Showing 1 changed file with 4 additions and 1 deletion.
Expand Up @@ -884,11 +884,14 @@ private boolean shouldBeIgnored (StoredObject obj, Path path, boolean overwrite)
// TODO: check other information in order to increase the confidence that the file is the same.
// ...
if (etag != null && etag.equals(md5))
{
logger.info("The file '{}' already exists in the cloud.", path.toString());
return true ;
}
else
{
logger.info("A different version of the file '{}' already exists in the cloud. it has been {}", path.toString(), (overwrite)?("overwritten"):("ignored"));
if (overwrite)
if (!overwrite)
return true ;
}
}
Expand Down

0 comments on commit b5a8108

Please sign in to comment.