Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jiaangli committed Mar 25, 2023
1 parent d5811f4 commit 347fd7b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/chatGPT/CDDR.md
Original file line number Diff line number Diff line change
Expand Up @@ -3178,7 +3178,7 @@ def get_file_extension(file_path):

file_path = 'example.epub'
extension = get_file_extension(file_path)
print(extension) # Output: .epub
print(extension) # Output: .epub+zip
```

Here, we first use the `mimetypes.guess_type` method to get the MIME type of the file. We set the `strict` parameter to False so that the function tries to guess the type even when it doesn't match a known type exactly. If the function doesn't find a MIME type, it returns `(None, None)`.
Expand Down

0 comments on commit 347fd7b

Please sign in to comment.