Yes, you're right since this is the output from walk(".") it won't have "../".  Since there is not simple strip() that takes full string instead of charset I'll take this as-is.   I thought we might be setting a trap at first glance.