Get this folder's parent.
()
| 542 | * Get this folder's parent. |
| 543 | */ |
| 544 | @Override |
| 545 | public synchronized Folder getParent() throws MessagingException { |
| 546 | char c = getSeparator(); |
| 547 | int index; |
| 548 | if ((index = fullName.lastIndexOf(c)) != -1) |
| 549 | return ((IMAPStore)store).newIMAPFolder( |
| 550 | fullName.substring(0, index), c); |
| 551 | else |
| 552 | return new DefaultFolder((IMAPStore)store); |
| 553 | } |
| 554 | |
| 555 | /** |
| 556 | * Check whether this folder really exists on the server. |
nothing calls this directly
no test coverage detected