[Mono-dev] Show Linux "." hidden directories
Jonathan Pryor
jonpryor at vt.edu
Tue Jun 12 16:56:59 UTC 2012
On May 31, 2012, at 4:36 PM, BigalGeorge wrote:
> Hi is mono capable of browsing the hidden directories under Linux? Why I ask is that I have enabled them for viewing under Ubuntu eg are visible in Nautilus, but when using mono browser they are hidden.
What is the "mono browser"?
I can't easily test on Linux atm, but on OS X hidden files are returned by System.IO.Directory.GetFiles():
$ csharp
Mono C# Shell, type "help;" for help
Enter statements below.
csharp> using System.IO;
csharp> Directory.GetFiles(Directory.GetCurrentDirectory());
{ "/Users/jon/.CFUserTextEncoding", "/Users/jon/.DS_Store", "/Users/jon/.Xauthority", "/Users/jon/.bash_history", ...
Notice that the entries in that except begin with a '.', and thus are hidden...
- Jon
More information about the Mono-devel-list
mailing list