Add a file check 91/262491/1
authorHwankyu Jhun <h.jhun@samsung.com>
Thu, 12 Aug 2021 03:46:07 +0000 (12:46 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Thu, 12 Aug 2021 03:46:07 +0000 (12:46 +0900)
commite3ee682b8d523dd015437eb176931f2a9fbdaa51
tree2d491ba25572671c51d1e912d09ed1114b2b0c62
parenta3140dd3e7505ab7bbda0393eb2f3e92f5ad649e
Add a file check

This patch adds to check whether the file is a regular file or not.
If it's not a regular file, the mime_type_get_mime_type_for_file() funtion
returns a negative error value.

Change-Id: I832fea354bc01561db7030a5a6f75b7f92644ebe
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
mime-type/mime_type.cc