private bool IsPathReadonly(string path) { return (RobustFile.GetAttributes(path) & FileAttributes.ReadOnly) != 0; }