Instance Property
ownsDataDirectory
If true, stop() removes dataDirectory after Tor exits.
var ownsDataDirectory: Bool
Discussion
Swift-tor-only convenience; no corresponding torrc option. Lets callers bind an ephemeral session to a UUID-suffixed temp directory and know that a clean stop() will leave no state on disk — ideal for tests, CLI one-shots, and privacy- sensitive UI sessions.
Important
Only dataDirectory is removed; cacheDirectory is preserved so its warm-cache benefit survives across sessions.