Skip to content

Commit

Permalink
Fix #10094.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Oct 12, 2017
1 parent 3c47c66 commit bdf7993
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 7 deletions.
Expand Up @@ -99,7 +99,9 @@ protected void save(final Host bookmark) {
else {
this.lock();
try {
folder.mkdir();
if(!folder.exists()) {
folder.mkdir();
}
final Local f = this.getFile(bookmark);
if(log.isInfoEnabled()) {
log.info(String.format("Save bookmark %s", f));
Expand All @@ -122,7 +124,9 @@ public void load() throws AccessDeniedException {
}
this.lock();
try {
folder.mkdir();
if(!folder.exists()) {
folder.mkdir();
}
final AttributedList<Local> bookmarks = folder.list().filter(
new Filter<Local>() {
@Override
Expand Down
Expand Up @@ -137,7 +137,9 @@ protected void save(final Transfer transfer) {
else {
this.lock();
try {
folder.mkdir();
if(!folder.exists()) {
folder.mkdir();
}
final Local f = this.getFile(transfer);
if(log.isInfoEnabled()) {
log.info(String.format("Save transfer %s", f));
Expand All @@ -160,7 +162,9 @@ public void load() throws AccessDeniedException {
}
this.lock();
try {
folder.mkdir();
if(!folder.exists()) {
folder.mkdir();
}
final AttributedList<Local> transfers = folder.list().filter(
new Filter<Local>() {
@Override
Expand Down
Expand Up @@ -67,7 +67,9 @@ public void load() throws AccessDeniedException {
}
this.lock();
try {
folder.mkdir();
if(!folder.exists()) {
folder.mkdir();
}
final AttributedList<Local> groups = folder.list().filter(
new NullFilter<Local>() {
@Override
Expand Down Expand Up @@ -124,4 +126,4 @@ public boolean allowsEdit() {
}
return true;
}
}
}
Expand Up @@ -640,7 +640,9 @@ else if("cyberduckprofile".equals(f.getExtension())) {
// Register in application support
final Local profiles = LocalFactory.get(preferences.getProperty("application.support.path"),
PreferencesFactory.get().getProperty("profiles.folder.name"));
profiles.mkdir();
if(!profiles.exists()) {
profiles.mkdir();
}
f.copy(LocalFactory.get(profiles, f.getName()));
}
}
Expand Down

0 comments on commit bdf7993

Please sign in to comment.