Web picture gallery using Flask based on directory tree