MCPcopy Create free account
hub / github.com/M66B/FairEmail / getFolder

Method getFolder

app/src/main/java/com/sun/mail/imap/IMAPFolder.java:895–905  ·  view source on GitHub ↗

Get the named subfolder.

(String name)

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 3

isDirectoryMethod · 0.95
getSeparatorMethod · 0.95
newIMAPFolderMethod · 0.45

Tested by

no test coverage detected