Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support sub-directory in the image folder #9

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ppodxiang
Copy link

I have the main branch using a simple photo folder: it have 13 .jpeg files in ./ and 13 .jpeg in ./2015_12 folder:
.
├── 2015_12
│   ├── 20151201_IMG_4403.JPG
│...
│   └── 20151231_IMG_4435.JPG
├── DSC01938.JPG
...
├── DSC01943.JPG;
the start_web.py return 404 for all files in ./2015_12 folder as it direct join image directory and filename, omit the relative path.

get_file_path_from_db(filename) use input filename and compare with info in the database and return absolute full file path.

WARNING: This may slow down the process when database is rather large!

…db function to support sub-directory in the image folder
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant