[Mono-list] Strange Behave in MS System.IO.Directory

Eduardo Garcia Cebollero kiwnix@yahoo.es
10 Dec 2002 03:09:57 +0100


Hello!

	While doing some work in System.IO.Directory.CreateDirectory() i
discover some strange behave with Path.AltDirectorySeparatorChar that in
windows is definded as "/"

In MS SDK you call:

Directory.CreateDirectory(@"C:\DIR1\DIR2/DIR3");

it ignores all after "/" creating C:\DIR1\DIR2 , if we follow this
behave we must ignore the "\" character, this will make imposible that
we create directories named "HELLO\\WORLD" for example.

This is the wanted behave or we should ignore it?

Thanks,
Eduardo.
-- 
            Eduardo Garcia Cebollero a.k.a. kiwnix
     Usuario de Debian GNU/Linux Sid (kernel 2.4.19-xfs-usagi)
          PGP KEY ID: 6817222C || kiwnix@yahoo.es
    Grupo de usuarios de SL/Linux de la UPSAM (www.linups.org)