public void RemoveExtendedAttribute(string path, string key) {
path = Path.GetFullPath(path);
if (!File.Exists(path) && !Directory.Exists(path)) {
throw new FileNotFoundException(string.Format("{0}: on path \"{1}\"", "No such file or directory", path), path);
}
#if __MonoCS__
long ret = Syscall.removexattr (path, prefix + key);
if (ret != 0) {
#if! __COCOA__
Errno errno = Syscall.GetLastError();
if (errno != Errno.ENODATA) {
throw new ExtendedAttributeException(string.Format("{0}: on path \"{1}\"", errno.ToString(), path));
}
#endif
}
#else
throw new WrongPlatformException();
#endif
}