isValidPath<T extends SyntheticInput> static method
Returns true
if path
is a valid input or output path.
Note: Synthetic input LibDir supports only input/output files located
below the package directory lib
.
Implementation
static bool isValidPath<T extends SyntheticInput>(String path) {
if (T == LibDir && path.substring(0, 'lib'.length) != 'lib') {
return false;
} else {
return true;
}
}