will be discarded."""
path = a
for b in p:
if b == None:
continue
if b.startswith('/'):
path = b
elif path == '' or path.endswith('/'):