+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.
{
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;
}
{
int r = Native.Syscall.link (FullName, path);
UnixMarshal.ThrowExceptionForLastErrorIf (r);
- return Create (path);
+ return GetFileSystemEntry (path);
}
public UnixSymbolicLinkInfo CreateSymbolicLink (string path)
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);
public UnixFileSystemInfo GetContents ()
{
string path = ReadLink ();
- return UnixFileSystemInfo.Create (
+ return UnixFileSystemInfo.GetFileSystemEntry (
UnixPath.Combine (UnixPath.GetDirectoryName (FullPath),
ContentsPath));
}