* UnixFileSystemInfo.cs: rename Create() to GetFileSystemEntry(), and make
authorJonathan Pryor <jpryor@novell.com>
Fri, 21 Apr 2006 13:47:36 +0000 (13:47 -0000)
committerJonathan Pryor <jpryor@novell.com>
Fri, 21 Apr 2006 13:47:36 +0000 (13:47 -0000)
    it public (so that other's don't need to worry about the
    Syscall.lstat()-and-switch to create a UnixFileSystemInfo instance).
  * UnixDirectoryInfo.cs, UnixSymbolicLinkInfo.cs:
    s/Create/GetFileSystemEntry/g (to cope with above change).

svn path=/trunk/mcs/; revision=59752

mcs/class/Mono.Posix/Mono.Unix/ChangeLog
mcs/class/Mono.Posix/Mono.Unix/UnixDirectoryInfo.cs
mcs/class/Mono.Posix/Mono.Unix/UnixFileSystemInfo.cs
mcs/class/Mono.Posix/Mono.Unix/UnixSymbolicLinkInfo.cs

index f2cc818366be1b8d5139f2ab4292000ea5bee4d1..d291c29d4b56d66934f5c45939cfbd7f2cada6ea 100644 (file)
@@ -1,3 +1,11 @@
+2006-04-21  Jonathan Pryor  <jonpryor@vt.edu>
+
+       * UnixFileSystemInfo.cs: rename Create() to GetFileSystemEntry(), and make
+         it public (so that other's don't need to worry about the
+         Syscall.lstat()-and-switch to create a UnixFileSystemInfo instance).
+       * UnixDirectoryInfo.cs, UnixSymbolicLinkInfo.cs:
+         s/Create/GetFileSystemEntry/g (to cope with above change).
+
 2006-03-09 Gonzalo Paniagua Javier <gonzalo@ximian.com>
 
        * UnixEndPoint.cs: added GetHashCode/Equals.
index 5d364c055a501564260b26893a37b3ec2abd9d7d..a25318aa31e3ef2f578018a389eb686ce656c792 100644 (file)
@@ -207,7 +207,7 @@ namespace Mono.Unix {
                {
                        UnixFileSystemInfo[] entries = new UnixFileSystemInfo[dentries.Length];
                        for (int i = 0; i != entries.Length; ++i)
-                               entries [i] = UnixFileSystemInfo.Create (
+                               entries [i] = UnixFileSystemInfo.GetFileSystemEntry (
                                                UnixPath.Combine (FullPath, dentries[i].d_name));
                        return entries;
                }
index f9cd3563e7ea739784fbc260becf3ea05442b837..13909c9794ae03b94abb9f017bdaae1e4039232a 100644 (file)
@@ -276,7 +276,7 @@ namespace Mono.Unix {
                {
                        int r = Native.Syscall.link (FullName, path);
                        UnixMarshal.ThrowExceptionForLastErrorIf (r);
-                       return Create (path);
+                       return GetFileSystemEntry (path);
                }
 
                public UnixSymbolicLinkInfo CreateSymbolicLink (string path)
@@ -386,7 +386,7 @@ namespace Mono.Unix {
                        return stat;
                }
 
-               internal static UnixFileSystemInfo Create (string path)
+               public static UnixFileSystemInfo GetFileSystemEntry (string path)
                {
                        Native.Stat stat;
                        int r = Native.Syscall.lstat (path, out stat);
index b469af311e37bf6204e05d5466c7e52c61992e9d..868dade2d513fc6349c22e89ca3c29d8b9239e82 100644 (file)
@@ -69,7 +69,7 @@ namespace Mono.Unix {
                public UnixFileSystemInfo GetContents ()
                {
                        string path = ReadLink ();
-                       return UnixFileSystemInfo.Create (
+                       return UnixFileSystemInfo.GetFileSystemEntry (
                                                UnixPath.Combine (UnixPath.GetDirectoryName (FullPath), 
                                                        ContentsPath));
                }