shikensu-0.3.11: Run a sequence of functions on in-memory representations of files

Shikensu.Internal.Utilities

Description

Internal utility functions.

Synopsis

# Documentation

Get the common directory from a pattern.

Path to parent, when there is one.

Just "../" or Nothing

Path to root.

Example, if dirname is 'example/subdir', then this will be ../../.

If the dirname is empty, then this will be empty as well.

If the path is a single dot, return an empty string. Otherwise return the path.

Strip prefix.

Take dirname and replace single dot.