liveOutIsFolder function
Whether the --out value requested names a folder rather than a file:
it ends with a path separator, or is a folder already.
Implementation
bool liveOutIsFolder(String requested, {required String root}) =>
requested.endsWith('/') ||
requested.endsWith(Platform.pathSeparator) ||
Directory(_resolve(requested, root)).existsSync();