Skip to content

Commit

Permalink
Fix #1240
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Sep 5, 2007
1 parent a2a2094 commit 64b3482
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
10 changes: 10 additions & 0 deletions source/ch/cyberduck/core/SyncTransfer.java
Expand Up @@ -230,6 +230,16 @@ protected void _transferImpl(final Path p) {
}
}

public boolean exists(Path file) {
if(roots.contains(file)) {
return true;
}
else if(!this.exists((Path)file.getParent())) {
return false;
}
return super.exists(file);
}

protected void clear() {
_comparisons.clear();

Expand Down
10 changes: 1 addition & 9 deletions source/ch/cyberduck/core/Transfer.java
Expand Up @@ -334,15 +334,7 @@ protected abstract class TransferFilter implements PathFilter {
public boolean exists(Path file) {
if(!_existing.containsKey(file)) {
log.debug("exists:"+file);
if(roots.contains(file)) {
_existing.put(file, Boolean.valueOf(true));
}
else if(!this.exists((Path)file.getParent())) {
_existing.put(file, Boolean.valueOf(false));
}
else {
_existing.put(file, Boolean.valueOf(file.exists()));
}
_existing.put(file, Boolean.valueOf(file.exists()));
}
return ((Boolean)_existing.get(file)).booleanValue();
}
Expand Down

0 comments on commit 64b3482

Please sign in to comment.