[Mono-dev] System.IO.Directory.CreateDirectory bug!
Leszek Ciesielski
skolima at gmail.com
Sat Dec 16 09:08:01 EST 2006
On 12/15/06, Luciano Callero <lnc19 at hotmail.com> wrote:
> Hi:
> I'm using mono 1.1.17.1.
> I have a problem with System.IO.Directory.CreateDirectory method.
> The problem is: if i create a file in somewhere with some name, and then
> create a folder in the same place with the same (file) name, the folder is
> not created (wich is correct) but no exception is throw. This is correct?
> (If i create first the directory and then the file, the
> System.IO.File.Create method throw a correct System.IO.IOException).
> The code to test is:
>
> namespace test
> {
> class MainClass
> {
> public static void Main(string[] args)
> {
> File.Create("/tmp/test");
> Console.WriteLine(String.Format("File Exists? {0}",
> File.Exists("/tmp/test").ToString()));
> Directory.CreateDirectory("/tmp/test"); // An IOException must be throw
> here.
> Console.WriteLine(String.Format("Folder Exists? {0}",
> Directory.Exists("/tmp/test").ToString()));
>
> }
> }
> }
>
>
> Do i fill a bug report? is it correct this behavior?
>
> Thanks in advanced
> Luciano
>
> _________________________________________________________________
> Visita MSN Latino Noticias: Todo lo que pasa en el mundo y en tu paín, ¡en
> tu idioma! http://latino.msn.com/noticias/
>
> _______________________________________________
> Mono-devel-list mailing list
> Mono-devel-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-devel-list
>
--
MS-DOS user since 5.0
Windows user since 3.11
Linux user since kernel 2.4
Novell Netware user since 2.2
WARCRAFT user since 1.0
More information about the Mono-devel-list
mailing list