def split(pathnfile):
    """Return file and directory path from string"""
    sp = pathnfile.split('/')
    if len(sp) == 1:
        filename = sp[0]
        path = './'
    else:
        filename = sp.pop(len(sp) - 1)
        path = '/'.join(sp) + '/'
    return path, filename