Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions mbutil/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,8 @@ def disk_to_mbtiles(directory_path, mbtiles_file, **kwargs):
logger.warning("Your OS is MacOS,and the .DS_Store file will be ignored.")
else:
file_name, ext = current_file.split('.',1)
if (ext != image_format and ext != 'grid.json'):
continue
f = open(os.path.join(directory_path, zoom_dir, row_dir, current_file), 'rb')
file_content = f.read()
f.close()
Expand Down