mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-08-04 14:46:03 +00:00
Check for dirs when getting mimetypes in a couple more places
This commit is contained in:
parent
ac6224563b
commit
d052b020fa
2 changed files with 2 additions and 2 deletions
|
|
@ -155,7 +155,7 @@ def sanitize(text: str) -> str:
|
|||
|
||||
@lru_cache(maxsize=1024)
|
||||
def mime_type_for_path(path: str) -> str:
|
||||
return guess_type(path) or 'application/octet-stream'
|
||||
return guess_type(path, allow_filesystem_access=True) or 'application/octet-stream'
|
||||
|
||||
|
||||
@lru_cache(maxsize=1024)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue