String getName({bool withExt = true}) { final name = path.split('/').last; if (!withExt) { return name.split('.').first; } return name; }