liveOutIsFolder function

bool liveOutIsFolder(
  1. String requested, {
  2. required String root,
})

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();