get {return UnixPath.GetFileName (FullPath);}
}
+ [Obsolete ("Use GetContents()")]
public UnixFileSystemInfo Contents {
- get {
- string path = TryReadLink ();
- if (path != null)
- return UnixFileSystemInfo.Create (ContentsPath);
- return null;
- }
+ get {return GetContents ();}
}
public string ContentsPath {
}
}
+ public UnixFileSystemInfo GetContents ()
+ {
+ string path = ReadLink ();
+ return UnixFileSystemInfo.GetFileSystemEntry (
+ UnixPath.Combine (UnixPath.GetDirectoryName (FullPath),
+ ContentsPath));
+ }
+
public void CreateSymbolicLinkTo (string path)
{
- int r = Native.Syscall.symlink (path, OriginalPath);
+ int r = Native.Syscall.symlink (path, FullName);
UnixMarshal.ThrowExceptionForLastErrorIf (r);
}
base.Refresh ();
}
- [CLSCompliant (false)]
- [Obsolete ("Use SetOwner (long, long)", true)]
- public override void SetOwner (uint owner, uint group)
- {
- int r = Syscall.lchown (FullPath, owner, group);
- UnixMarshal.ThrowExceptionForLastErrorIf (r);
- }
-
public override void SetOwner (long owner, long group)
{
int r = Native.Syscall.lchown (FullPath, Convert.ToUInt32 (owner), Convert.ToUInt32 (group));