Method EncodeSegment
- Namespace
- MailFathom.Domain.Exports
- Assembly
- MailFathom.Domain.dll
EncodeSegment(string)
Writes one path segment so that nothing an extractor reads as structure survives in it.
public static string EncodeSegment(string segment)
Parameters
segmentstringThe folder name segment, as the account holds it.
Returns
- string
The segment's UTF-8 bytes with every byte outside ASCII letters, digits,
-, and_percent-encoded.
Exceptions
- ArgumentNullException
Thrown when
segmentis null.