How do i get the file type in Mono? i.e. "*.txt" => "Text Document"
, "*.jpg" => "JPEG Image"
. Similar to what SHFILEINFO.szTypeName
returns with P/Invoke on Windows.
views:
39answers:
1
+3
A:
There is no cross-platform API for this. On Linux you can use GIO, and there are native APIs on Mac too though I don't know them offhand. On Windows you can P/Invoke from Mono.
mhutch
2010-08-19 15:46:06
Thank you. I'm adding a reference to GIO docs here: http://library.gnome.org/devel/gio/stable/index.html
Ozgur Ozcitak
2010-08-20 06:52:28