Skip to content

Add basename, extension, filename, parent

Michael Aaron Murphy requested to merge pithonsmear:patch-1 into master

Created by: pithonsmear

Problem: Missing string methods

Solution: Add some of them

Changes introduced by this pull request:

  • $basename: Print NAME without leading directories
  • $extension: Print extension of NAME
  • $filename: Print NAME without extension (if there is one)
  • $parent: Print parent of NAME (if there is one)

Merge request reports