Method FolderDirectory
- Namespace
- MailFathom.Domain.Exports
- Assembly
- MailFathom.Domain.dll
FolderDirectory(IReadOnlyList<string>, bool)
Composes the directory one folder's Maildir sits at, relative to the archive root.
public static string FolderDirectory(IReadOnlyList<string> pathSegments, bool isInbox)
Parameters
pathSegmentsIReadOnlyList<string>The folder's own path, outermost segment first, exactly as the account holds it.
isInboxboolWhether this folder is the account's inbox, which is the root Maildir rather than a directory beside it.
Returns
- string
The empty string for the inbox, and otherwise the encoded
.-prefixed directory name.
Exceptions
- ArgumentNullException
Thrown when
pathSegmentsis null.- ArgumentException
Thrown when
pathSegmentsis empty for a folder that is not the inbox.