[Mono-list] File permissions ...

Gonzalo Paniagua Javier gonzalo@ximian.com
09 May 2003 21:09:25 +0200


El vie, 09 de 05 de 2003 a las 20:56, Giuseppe Greco escribió:
> Hi all,
> 
> Try doing this from csharp code:
> 
> File.Copy( "mySource.txt", "myDest.txt", true );
> 
> ... and then look at the file permissions:
> 
> -rw-rw-r-- mySource.txt
> -rw------- myDest.txt
> 
> The File.Copy() method doesn't keep the original
> file permissions; does anybody know if this is
> a known bug in Mono?

Probably your umask is set to 077.

-Gonzalo