split the dirname input into list of parts
List<String> get dirNames => dirName != null ? [...dirName!.split(RegExp(r"(\\|\/)"))] : [];