FileNameDrop

WMA link


FileNameDrop["path", n]

drops the first n path elements in the file name path.

FileNameDrop["path", -n]

drops the last n path elements in the file name path.

FileNameDrop["path", {m, n}]

drops elements m through n path elements in the file name path.

FileNameDrop["path"]

drops the last path elements in the file name path.

A shorthand for the above: