isDirectory property
True when path is a directory — a folder, or a macOS package the Finder
presents as a single file (.utm, .app, …). A directory can't be
uploaded as one file, so the app zips it before sending rather than
enqueuing a send that would fail (stat'ing the path throws Is a directory).
Implementation
final bool isDirectory;