filename method

String filename()

Implementation

String filename() {
  return path.split('/').last;
}