M
Massimiliano Alberti
Now... I have a file "c:\test". I don't know if it's a file ora directory. I
can't instanciate FileSystemInfo because it's an abstract class.
What must I do? Instanciate a DI, check if it's a Directory and if it isn't
instanciate a FI? Is there a better method?
OR
I could parse the filename, extract the parent directory info (c:\), and
then, knowing it's a directory, create a DirectoryInfo for the parent, and
then use the GetFileSystemInfos to retrieve a FileSystemInfo (that in truth
is a DI or a FI casted down).
--- bye
can't instanciate FileSystemInfo because it's an abstract class.
What must I do? Instanciate a DI, check if it's a Directory and if it isn't
instanciate a FI? Is there a better method?
OR
I could parse the filename, extract the parent directory info (c:\), and
then, knowing it's a directory, create a DirectoryInfo for the parent, and
then use the GetFileSystemInfos to retrieve a FileSystemInfo (that in truth
is a DI or a FI casted down).
--- bye