class Build::Files::Path
def self.split(path)
def self.split(path) # Effectively dirname and basename: dirname, separator, filename = path.rpartition(File::SEPARATOR) filename, dot, extension = filename.rpartition('.') return dirname + separator, filename, dot + extension end