Get the named subfolder.
(String name)
| 893 | * Get the named subfolder. |
| 894 | */ |
| 895 | @Override |
| 896 | public synchronized Folder getFolder(String name) |
| 897 | throws MessagingException { |
| 898 | // If we know that this folder is *not* a directory, don't |
| 899 | // send the request to the server at all ... |
| 900 | if (attributes != null && !isDirectory()) |
| 901 | throw new MessagingException("Cannot contain subfolders"); |
| 902 | |
| 903 | char c = getSeparator(); |
| 904 | return ((IMAPStore)store).newIMAPFolder(fullName + c + name, c); |
| 905 | } |
| 906 | |
| 907 | /** |
| 908 | * Delete this folder. |
nothing calls this directly
no test coverage detected