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

Method getParent

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

Get this folder's parent.

()

Source from the content-addressed store, hash-verified

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.

Callers

nothing calls this directly

Calls 2

getSeparatorMethod · 0.95
newIMAPFolderMethod · 0.45

Tested by

no test coverage detected