R/directoryName.R
directoryName.Rd
The base function dirname may fail if the path passed is too long. This version checks if the call of dirname() failed and gives a clear error message.
dirname
dirname()
directoryName(x)
a file path of which to get the path to the directory only
path to directory of file path given in x
x
if (FALSE) { directoryName(repeated("verylongpath/", 50)) }