you can use `file_path.strip('/')` instead.