(filepath)
return retVal
Returns directory path for a given filepath

    >>> directoryPath('/var/log/apache.log')
    '/var/log'
Returns directory path for a given filepath
Returns directory path for a given filepath
def directoryPath(filepath):
    """
    Returns directory path for a given filepath

    >>> directoryPath('/var/log/apache.log')
    '/var/log'
    """

    retVal = filepath

    if filepath:
        retVal = ntpath.dirname(filepath) if isWindowsDriveLetterPath(filepath) else posixpath.dirname(filepath)

    return retVal
def directoryPath ( filepath ) : retVal = filepath if filepath : retVal = ntpath . dirname ( filepath ) if isWindowsDriveLetterPath ( filepath ) else posixpath . dirname ( filepath ) return retVal