T
Tom P.
I looked and the last guy to ask this was in 2005 and he didn't get an
answer either.
I have an application that is handling both files and directories
(like a file manager). I need to be able to determine if the string
passed in is a file or a directory.
It's not good enough to use File.Exists() since that will simply tell
me the file is not a real file on the harddrive, not whether it
properly represents a file. Also, checking the FileInfo.Extension
doesn't help anymore because files don't require extensions. I've
tried FileInfo.Length (get FileNotFoundException which is the same as
Exists above). I've tried everything I can think of and I can't come
up with anything.
Thanks for any help you can give.
Tom Padilla
answer either.
I have an application that is handling both files and directories
(like a file manager). I need to be able to determine if the string
passed in is a file or a directory.
It's not good enough to use File.Exists() since that will simply tell
me the file is not a real file on the harddrive, not whether it
properly represents a file. Also, checking the FileInfo.Extension
doesn't help anymore because files don't require extensions. I've
tried FileInfo.Length (get FileNotFoundException which is the same as
Exists above). I've tried everything I can think of and I can't come
up with anything.
Thanks for any help you can give.
Tom Padilla