Skip to content

Commit

Permalink
Fix #5662.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Mar 9, 2011
1 parent a475718 commit 72be780
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions source/ch/cyberduck/core/dav/DAVPath.java
Expand Up @@ -133,6 +133,25 @@ public void readTimestamp() {
}
}

@Override
public boolean exists() {
if(super.exists()) {
return true;
}
if(this.attributes().isDirectory()) {
// Parent directory may not be accessible. Issue #5662
try {
this.getSession().getClient().setPath(this.attributes().isDirectory() ?
this.getAbsolute() + String.valueOf(Path.DELIMITER) : this.getAbsolute());
return this.getSession().getClient().exists();
}
catch(IOException e) {
this.error("Cannot read file attributes", e);
}
}
return false;
}

@Override
public void delete() {
try {
Expand Down

0 comments on commit 72be780

Please sign in to comment.